diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-03-15 22:49:31 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-03-17 20:19:09 +0400 |
commit | b5ddc0cf9658499e04c10b8e3158b81d2be0d5ac (patch) | |
tree | 94d4597dd950e8d18472f419be2f195dda66a5f3 /lib/tls.js | |
parent | a0867e1c9395bc9c8af37c290f032bc8dbd847ce (diff) | |
download | nodejs-b5ddc0cf9658499e04c10b8e3158b81d2be0d5ac.tar.gz nodejs-b5ddc0cf9658499e04c10b8e3158b81d2be0d5ac.tar.bz2 nodejs-b5ddc0cf9658499e04c10b8e3158b81d2be0d5ac.zip |
tls: write pending data of opposite side
Fix stucked CryptoStream behaviour, happening when one of the sides
locks-up in queued state.
fix #5023
Diffstat (limited to 'lib/tls.js')
-rw-r--r-- | lib/tls.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tls.js b/lib/tls.js index 515761410..ab80fb181 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -435,6 +435,7 @@ CryptoStream.prototype._read = function read(size) { // Try writing pending data if (this._pending !== null) this._writePending(); + if (this._opposite._pending !== null) this._opposite._writePending(); if (bytesRead === 0) { // EOF when cleartext has finished and we have nothing to read |