mirror of https://github.com/nodejs/node.git
tls: fix typo `handle._reading` => `handle.reading`
The problem does not manifest itself on unixes, because `uv_read_start()` always return 0 there. However on Windows on a second call `uv_read_start()` returns `UV__EALREADY` destroying all sockets on a read attempt. Set `.reading` property that is already handled by `net.js` code. Fix: https://github.com/iojs/io.js/issues/988 PR-URL: https://github.com/iojs/io.js/pull/994 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>pull/994/merge
parent
675cffb33e
commit
755461219d
|
@ -281,7 +281,7 @@ TLSSocket.prototype._wrapHandle = function(handle) {
|
|||
tls.createSecureContext();
|
||||
res = tls_wrap.wrap(handle, context.context, options.isServer);
|
||||
res._parent = handle;
|
||||
res._reading = handle._reading;
|
||||
res.reading = handle.reading;
|
||||
|
||||
// Proxy HandleWrap, PipeWrap and TCPWrap methods
|
||||
proxiedMethods.forEach(function(name) {
|
||||
|
|
Loading…
Reference in New Issue