From 4d0416caf6e9ff2f09494e1257fd714c65cf0da4 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 18 Jan 2011 17:56:52 -0800 Subject: [PATCH] Add setNoDelay to cryptostream --- lib/tls.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tls.js b/lib/tls.js index 4324038..95d9d1c 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -81,6 +81,11 @@ CryptoStream.prototype.setTimeout = function(n) { }; +CryptoStream.prototype.setNoDelay = function() { + if (this.socket) this.socket.setNoDelay(); +}; + + // EG '/C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=ca1/emailAddress=ry@clouds.org' function parseCertString(s) { var out = {}; -- 2.7.4