mirror of https://github.com/nodejs/node.git
parent
7f303707d5
commit
60238cce12
|
@ -1306,6 +1306,10 @@ function pipe(pair, socket) {
|
||||||
// its data from the cleartext side, we have to give it a
|
// its data from the cleartext side, we have to give it a
|
||||||
// light kick to get in motion again.
|
// light kick to get in motion again.
|
||||||
socket.on('drain', function() {
|
socket.on('drain', function() {
|
||||||
|
if (pair.encrypted._pending)
|
||||||
|
pair.encrypted._writePending();
|
||||||
|
if (pair.cleartext._pending)
|
||||||
|
pair.cleartext._writePending();
|
||||||
pair.encrypted.read(0);
|
pair.encrypted.read(0);
|
||||||
pair.cleartext.read(0);
|
pair.cleartext.read(0);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue