Open
Description
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.