This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
HMR and server reload don't work #187
Labels
kind/bug/possible
Something probably isn't working
priority/backlog
status/wontfix
This will not be worked on
Projects
Describe the bug
The symfony project itself works fine and as expected. But the HRM doesn't work. I have to stop and start the swoole-server every time I change a file. Did I something wrong? The InotifyHRM class is loaded and initialized.
For my opinion problem here
https://github.com/k911/swoole-bundle/blob/develop/src/Server/Runtime/HMR/InotifyHMR.php#L78
because almost all files included (based on my investigation)
Function reload doesn't work too, so I have to do stop-start only.
It uses next code when I'm trying to reload it
https://github.com/k911/swoole-bundle/blob/develop/src/Server/HttpServer.php#L98
I see next logs in var/log/swoole_dev.log
[2020-04-09 15:38:41 $4532.0] INFO Server is reloading all workers now [2020-04-09 15:38:43 *4551.0] WARNING swWorker_reactor_is_empty (ERRNO 9012): worker exit timeout, forced to terminate [2020-04-09 15:38:43 *4552.1] WARNING swWorker_reactor_is_empty (ERRNO 9012): worker exit timeout, forced to terminate
Steps To Reproduce
I created new empty project with only one controller.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: