Skip to content

SocketsHttpHandler does not respect the Keep-Alive header #72958

Description

@MihaZupan

RFC 2068 defines a Keep-Alive header that the server can send on HTTP/1.0 responses.

For example:

Keep-Alive: timeout=15, max=100
Connection: Keep-Alive

which indicates that the connection should not be reused after idling for longer than 15 seconds, or for more than 100 requests.

SocketsHttpHandler currently completely ignores this header.
As a result, the server may respond to otherwise-valid requests with errors.

We should consider honoring this header to improve compatibility with legacy servers.
Browsers apparently broadly support this as well: browser compatibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions