Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit e5ff927

Browse files
committed
fix(connection): ensure socket options are applied to ssl sockets
fixes NODE-1357
1 parent b479e8c commit e5ff927

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/connection/connection.js

+4
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,11 @@ function makeSSLConnection(self, _options) {
573573
// We are done emit connect
574574
self.emit('connect', self);
575575
});
576+
577+
// Set the options for the connection
578+
connection.setKeepAlive(self.keepAlive, self.keepAliveInitialDelay);
576579
connection.setTimeout(self.connectionTimeout);
580+
connection.setNoDelay(self.noDelay);
577581

578582
return connection;
579583
}

0 commit comments

Comments
 (0)