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 committed May 21, 2024
1 parent 60a01d0 commit fef6778
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 @@ -800,7 +800,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 fef6778

Please sign in to comment.