Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

现在能做到像 nginx reload 那样平滑重启吗? #363

Open
fansheng0594 opened this issue Jan 8, 2024 · 1 comment
Open

现在能做到像 nginx reload 那样平滑重启吗? #363

fansheng0594 opened this issue Jan 8, 2024 · 1 comment

Comments

@fansheng0594
Copy link

我看到热更新时,是发送 SIGUSR1 信号的:

$watcher->watch(function () use ($pool) {
         Process::kill($pool->master_pid, SIGUSR1);
});

我测试过,在一个请求中 sleep(10),在 sleep 结束前随便修改一行代码触发热更新,之前 sleep(10) 的请求就自动结束了
请问有什么办法重启时让之前正在执行的请求顺利执行完吗?

@zmqfonnie
Copy link

还不可以,很影响业务

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants