From 755461219d6b60361d1b725833e5356e681d2ca3 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sat, 28 Feb 2015 02:07:25 +0300 Subject: [PATCH] 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 --- lib/_tls_wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 41421e19880890..0247eeac747bbf 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -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) {