-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Graceful shutdown #2192
Comments
Show the main function, and how to you kill the app? |
请问您的问题找到了吗? |
Did you find your question? |
ctrl-c is not going to happy in service. Use |
|
This issue is stale because it has been open for 30 days with no activity. |
测试最新版,仍然有这个问题。 s := rest.MustNewServer(*cfg)
s.Stop() // 执行后在进行中的请求全部立即返回了。 |
Tried the latest version and still have this problem. s := rest.MustNewServer(*cfg)
s.Stop() // All requests in progress are returned immediately after execution. |
go-zero only handles SIGTERM, because in server, you never hit ctrl-c to running services. |
Supported SIGINT already. |
grpc 程序,接收到了kill信号,直接退出程序,并没等正在处理程序的协程处理结束后再退出
The text was updated successfully, but these errors were encountered: