Skip to content

Commit

Permalink
Use keepalive with 1 minute idle time
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Jul 7, 2021
1 parent 174e4fd commit 60c1f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function postgresSocket(options, {
: net.connect(
x.port = options.port[i],
x.host = options.host[i++]
)
).setKeepAlive(true, 1000 * 60)

if (!options.ssl)
return attach(socket)
Expand Down

0 comments on commit 60c1f8e

Please sign in to comment.