-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
fix: make sure always execute the shutdown logic #2510
base: master
Are you sure you want to change the base?
Conversation
This doesn't follow the ASGI specification. There are related issues, please search them on https://github.com/encode/uvicorn/issues. |
@Kludex actually it is not the same as #1301 etc. Please help review again. I am not to break the ASGI specification, just want to make sure the shutdown logic is comprehensive. |
c999e6e
to
05b1ec2
Compare
@Kludex Could you please help review and approve? |
@florimondmanca Hello. sorry to loop you in. Not very sure if you are the right person for reviewing this PR. Just saw you have ever touched this part of the code. Could you please review this one? |
hi @Kludex Happy new year!! |
Please create a discussion with a MRE. As I said before, this goes against the ASGI specification. |
hello @Kludex Could you please elaborate which rules of ASGI specification will against? |
make sure always execute the shutdown logic, even if server received a signal before entering
main_loop
before: can not shutdown server when i try to shutdown a server during startup
after:
Summary
Checklist