You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would enabling TCP keep-alive by default on the HTTP Client be equivalent to using a http.Transport's dialer with net.Dialer.KeepAlive > 0 behavior of using SetKeepAlive and SetKeepAlivePeriod to set the keep-alive? Or would only SetKeepAlive be used by the updated HTTP Client's default behavior?
With this default behavior change, would omitting net.Dialer.KeepAlive or setting its value to 0, disable TCP keep-alive like the behavior the current net.Dialer?
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: