Skip to content

Commit bee62f3

Browse files
committed
Allow setting keep_alive: false
1 parent e20202d commit bee62f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
354354
statementCount = 1
355355
lifeTimer.start()
356356
socket.on('data', data)
357-
keep_alive != null && socket.setKeepAlive(true, 1000 * keep_alive)
357+
keep_alive && socket.setKeepAlive(true, 1000 * keep_alive)
358358
const s = StartupMessage()
359359
write(s)
360360
} catch (err) {

0 commit comments

Comments
 (0)