Skip to content

Commit 60c1f8e

Browse files
committed
Use keepalive with 1 minute idle time
1 parent 174e4fd commit 60c1f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function postgresSocket(options, {
330330
: net.connect(
331331
x.port = options.port[i],
332332
x.host = options.host[i++]
333-
)
333+
).setKeepAlive(true, 1000 * 60)
334334

335335
if (!options.ssl)
336336
return attach(socket)

0 commit comments

Comments
 (0)