-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change populates the `Keep-Alive` header for persistent HTTP/1.1 connections. It helps mitigate race conditions when the client still thinks that the connection is going to persist but the server closes it on timeout meanwhile. The effect of introducing this change is that the HTTP client will now know about the timeout (because it'll be exposed) and won't attept to reuse the connection when it's timed out but hasn't gotten the FIN packet on the underlying TCP connection. Refs: * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive * https://tools.ietf.org/html/rfc2068#section-19.7.1.1 * https://github.com/meaksh/cheroot/blob/107650d/cheroot/server.py#L736 * https://github.com/meaksh/cheroot/blob/107650d/cheroot/server.py#L1352
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 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
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