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

Timing bug workaround for node.js 0.11 / io.js 1.1.0 #241

Closed
wants to merge 1 commit into from

Conversation

coolaj86
Copy link
Contributor

@coolaj86 coolaj86 commented Feb 4, 2015

In connection with nodejs/node#712 (comment) I've found that wrapping this method solves a timing bug that appears to be deep in the bowels of node (or perhaps it is somewhere in oauth2, but seeing that it comes from C code, I don't think that's the case).

I can faithfully reproduce the bug, but haven't been able to isolate it outside of passport / oauth2 (probably due to the nature of the timing and the number of callbacks).

node v0.10.35 does not manifest the error.

In connection with nodejs/node#712 (comment) I've found that wrapping this method solves a timing bug that appears to be deep in the bowels of node (or perhaps it is somewhere in oauth2).

I can faithfully reproduce the bug, but haven't been able to isolate it outside of passport / oauth2 (probably due to the nature of the timing and the number of callbacks).

node v0.10.35 does not manifest the error.
@ciaranj
Copy link
Owner

ciaranj commented Feb 4, 2015

Ugggh :( and so it begins! (Io vs node) thank you :)

@coolaj86
Copy link
Contributor Author

coolaj86 commented Feb 6, 2015

The bug was found! This should be fixed in io.js v1.1.1, but who knows when that will get merged into node v0.11

nodejs/node#712

@coolaj86
Copy link
Contributor Author

I haven't tested in node v0.12, but this was definitely fixed in io.js v1.2 closing

@coolaj86 coolaj86 closed this Feb 18, 2015
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.

2 participants