-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
Don't poll for disconnects in BaseHTTPMiddleware via StreamingResponse #2620
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Mikkel Duif <[email protected]>
I can confirm that this PR fixes the example I have reproduced in #2516 (comment) |
Maybe we should consider to add a section to: https://www.starlette.io/middleware/#basehttpmiddleware emphasising this. |
Seems like the issue now is coverage in tests (all of the tests still pass). There are several pieces of test code that are not not being hit but I'm not sure if they were essential or just an implementation detail, some more careful evaluation is needed. |
Fixes #2516