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.
RFC 2068 defines a
Keep-Aliveheader that the server can send on HTTP/1.0 responses.For example:
which indicates that the connection should not be reused after idling for longer than 15 seconds, or for more than 100 requests.
SocketsHttpHandlercurrently 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.