Skip to content

Commit

Permalink
tls: fix typo handle._reading => handle.reading
Browse files Browse the repository at this point in the history
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: #988
PR-URL: #994
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
  • Loading branch information
indutny authored and chrisdickinson committed Feb 28, 2015
1 parent 675cffb commit 7554612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 7554612

Please sign in to comment.