Skip to content

Commit 9124343

Browse files
committed
chore: add agent.options.keepAlive instead agent.keepAlive
1 parent d177d40 commit 9124343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class Agent extends OriginalAgent {
169169
}
170170
}
171171

172-
if (this.keepAlive) {
172+
if (this.options.keepAlive) {
173173
// Disable Nagle's algorithm: http://blog.caustik.com/2012/04/08/scaling-node-js-to-100k-concurrent-connections/
174174
// https://fengmk2.com/benchmark/nagle-algorithm-delayed-ack-mock.html
175175
socket.setNoDelay(true);

0 commit comments

Comments
 (0)