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

优雅停机 #136

Open
lantian-ola opened this issue Mar 11, 2023 · 2 comments
Open

优雅停机 #136

lantian-ola opened this issue Mar 11, 2023 · 2 comments

Comments

@lantian-ola
Copy link

image

收到 signal ,listener关闭之后,方法直接退出了,进程被关闭了,而handler.close就不会再调用了

image

image

handler的close方法的日志没有输出,是否先调用handler的close

@HDT3213
Copy link
Owner

HDT3213 commented Mar 13, 2023

wired, 应该不是调用顺序的原因。 TestListenAndServe 可以正常完成 close

@jacklan123
Copy link

还是我,那个是公司号。

test里面有sleep,关闭handler的协程没有立刻退出,所以会有关闭

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

3 participants