net/http: call TCPConn.SetKeepAlive on Transport #25883
Closed
Comments
Would enabling TCP keep-alive by default on the HTTP Client be equivalent to using a With this default behavior change, would omitting |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We enable TCP keep-alives by default for the http Server, but not the HTTP Client.
Seems like we should also enable it by default for the HTTP/1 and HTTP/2 clients.
(or perhaps just HTTP/1, and HTTP/2 can use PING frames with a timeout)
/cc @tombergan
The text was updated successfully, but these errors were encountered: