Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls: fix typo handle._reading => handle.reading #994

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link
Member

@indutny indutny commented Feb 27, 2015

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

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: nodejs#988
@mikeal
Copy link
Contributor

mikeal commented Feb 27, 2015

How fast can we push a patch release with this in it. It sounds like a nasty bug.

Also, can we get a test in for this?

@indutny
Copy link
Member Author

indutny commented Feb 27, 2015

@mikeal there are lots of failing tests on windows :) I think this should be enough.

@indutny
Copy link
Member Author

indutny commented Feb 27, 2015

cc @iojs/crypto @rvagg

@indutny
Copy link
Member Author

indutny commented Feb 27, 2015

Guys please land it if it LGTY, I'm going to sleep...

@mikeal
Copy link
Contributor

mikeal commented Feb 27, 2015

there are lots of failing tests on windows

even more concerning :(

@rvagg
Copy link
Member

rvagg commented Feb 27, 2015

Jenkins has been doing some crazy stuff with git, the release was delayed because the 64-bit windows build machine kept on trying to build on a totally different commit than the others, ignoring the tag I gave it! My theory here is that the CI runs before release were using the wrong commit for testing on Windows machines giving us false-positives.

@rvagg rvagg mentioned this pull request Feb 27, 2015
@rvagg
Copy link
Member

rvagg commented Feb 27, 2015

The above assumption about CI was wrong, it was actually my fault, not Jenkins, full details in #995.

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it going to matter that handle.reading is undefined for non-net.Socket handles?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisdickinson can you think of a way to test this? I'd really like to get a release out in the next hour or so with this PR merged.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On further reading, I think it should be harmless if it's not there.

@chrisdickinson
Copy link
Contributor

LGTM. Going to merge it.

@rvagg
Copy link
Member

rvagg commented Feb 28, 2015

indutny added a commit that referenced this pull request Feb 28, 2015
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>
@chrisdickinson
Copy link
Contributor

Merged in 7554612.

rvagg added a commit that referenced this pull request Feb 28, 2015
Notable changes:

* tls: A typo introduced in the TLSWrap changes in
  #840 only encountered as a bug on
  Windows was not caught by the io.js CI system due to problems with the
  Windows build script and the Windows CI slave configuration, see
  Fixed in #994 &
  #1004 (Fedor Indutny)
* npm: Upgrade npm to 2.6.1. See
  https://github.com/npm/npm/blob/master/CHANGELOG.md#v260-2015-02-12
  for details.
* Add new collaborators:
  - Robert Kowalski (@robertkowalski)
  - Christian Vaagland Tellnes (@tellnes)
  - Brian White (@mscdex)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants