mirror of https://github.com/jackc/pgx.git
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
parent
732889728f
commit
24c0a5e8ff
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue