-
-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace task cancellation in
BaseHTTPMiddleware
with `http.disconne…
…ct`+`recv_stream.close` (#1715) * replace BaseMiddleware cancellation after request send with closing recv_stream + http.disconnect in receive fixes #1438 * Add no cover pragma on pytest.fail in tests/middleware/test_base.py Co-authored-by: Adrian Garcia Badaracco <[email protected]> * make http_disconnect_while_sending test more robust in the face of scheduling issues * Fix issue with running middleware context manager Reported in #1678 (comment) Co-authored-by: Adrian Garcia Badaracco <[email protected]> Co-authored-by: Marcelo Trylesinski <[email protected]>
- Loading branch information
Showing
2 changed files
with
244 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters