net/http: send and understand the hop-by-hop Keep-Alive header #15508
Milestone
Comments
Apparently this is seen in the wild only about 0.2% of the time and servers have stopped(?) using it. nginx might still send it? Apache used to and stopped? So this might be lower priority. |
Reportedly: "AmazonS3 sends Keep-Alive: timeout=10" |
https://discuss.httparchive.org/t/use-of-keep-alive-header-on-the-web/794 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that we have
net/http.Transport.IdleConnTimeout
we could also advertise our timeout to the peer:https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#rfc.section.2
It's a little useless for the client to send it, but perhaps the server could take care not to close the connection just before (~second) of the client's announced close time, just in case the client was about to send something as the server would have otherwise closed.
Independently, and more usefully, the server could announce its keep-alive idle time (once it exists: #14204) and the client could respect it.
The text was updated successfully, but these errors were encountered: