Swoole reload doesn't work?

swoole restart does not take effect
Test procedure:
1. Output a string
2 in the open callback method. Then modify the output string after startup.
3. The kill-USR1 PID with $server- > reload and the official website will not take effect, and the output will not change the previous string. All kinds of attempts are not allowed, is the operation wrong?

May.06,2021

which event are you listening to in this open callback?

reload is to restart all worker processes, and the code called before onWorkerStart will not be reloaded

Menu