Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created June 26, 2013 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/5868410 to your computer and use it in GitHub Desktop.
Save isaacs/5868410 to your computer and use it in GitHub Desktop.
diff --git a/lib/tls.js b/lib/tls.js
index 4d222f3..21c2cdf 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -505,6 +505,7 @@ CryptoStream.prototype._read = function read(size) {
// simple/test-https-drain fails without it
process.nextTick(function() {
self.read(bytesRead);
+ if (self._opposite.readable) self._opposite.read(0);
});
}
this.push(pool.slice(start, start + bytesRead));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment