Skip to content

Commit

Permalink
remove keepalive and rely on GOLANG default (since go 1.13 default is…
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nIg authored and jackc committed May 21, 2024
1 parent 7328897 commit 24c0a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgconn/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 24c0a5e

Please sign in to comment.