Skip to content

net/http: send and understand the hop-by-hop Keep-Alive header #15508

Open
@bradfitz

Description

@bradfitz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions