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

exit LifespanMiddleware after shutdown #102

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

devhawk
Copy link
Contributor

@devhawk devhawk commented Sep 12, 2024

W/o the added while break, fastapi issues a log message INFO: ASGI 'lifespan' protocol appears unsupported.. Exiting LifespanMiddleware.__call__ after sending the shutdown response eliminates the stray message

@devhawk devhawk merged commit acd4c24 into main Sep 12, 2024
4 checks passed
@devhawk devhawk deleted the devhawk/LifespanMiddleware-break branch September 12, 2024 20:42
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

Successfully merging this pull request may close these issues.

3 participants