remove keepalive and rely on GOLANG default (since go 1.13 default is 15s)

https://www.reddit.com/r/golang/comments/d7v7dn/psa_go_113_introduces_15_sec_server_tcp/
pull/2026/head
Hans-Joachim Kliemeck 2024-04-18 11:18:38 +02:00 committed by Jack Christensen
parent 732889728f
commit 24c0a5e8ff
1 changed files with 2 additions and 1 deletions

View File

@ -817,7 +817,8 @@ func parsePort(s string) (uint16, error) {
}
func makeDefaultDialer() *net.Dialer {
return &net.Dialer{KeepAlive: 5 * time.Minute}
// rely on GOLANG KeepAlive settings
return &net.Dialer{}
}
func makeDefaultResolver() *net.Resolver {