-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#5056) Backports the following commits to 3.7: - #4587 Always check transport is not closing before reuse (#4778) Co-authored-by: Dahuage <Dahuage@users.noreply.github.com>
- Loading branch information
1 parent
cf84c9b
commit e80df69
Showing
5 changed files
with
54 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Always make sure transport is not closing before reuse a connection. | ||
|
||
Reuse a protocol based on keepalive in headers is unreliable. | ||
For example, uWSGI will not support keepalive even it serves a | ||
http1.1 request, except explicitly configure uWSGI with a | ||
`--http-keepalive` option. | ||
|
||
Servers designed like uWSGI could cause aiohttp intermittently | ||
raise a ConnectionResetException when the protocol poll runs | ||
out and some protocol is reused. |
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
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