diff --git a/lib/tls.js b/lib/tls.js index f8122c7f51..d194d8b8bc 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -177,7 +177,7 @@ CryptoStream.prototype.setNoDelay = function(noDelay) { CryptoStream.prototype.setKeepAlive = function(enable, initialDelay) { - if (this.socket) this.socket.setNoDelay(enable, initialDelay); + if (this.socket) this.socket.setKeepAlive(enable, initialDelay); };