Skip to content

Commit 24c0a5e

Browse files
h0nIgjackc
authored andcommitted
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/
1 parent 7328897 commit 24c0a5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pgconn/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,8 @@ func parsePort(s string) (uint16, error) {
817817
}
818818

819819
func makeDefaultDialer() *net.Dialer {
820-
return &net.Dialer{KeepAlive: 5 * time.Minute}
820+
// rely on GOLANG KeepAlive settings
821+
return &net.Dialer{}
821822
}
822823

823824
func makeDefaultResolver() *net.Resolver {

0 commit comments

Comments
 (0)