-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
https SNICallback hangs if optional callback isn't provided on ARM6 (and possibly others) #869
Comments
(testing from my macbook to my rpi) It hangs with It doesn't hang with It does hang in Chrome with https://10.0.0.20:65443 |
Testing on localhostTesting from the Raspberry Pi (localhost -> localhost): Works or Gives Error
Hangs Forever
Testing NOT on localhost
|
The Problem and the WorkaroundThe API for SNICallback has changed since P.S. I'm definitely in favor of the callback remaining optional since it's difficult for me, the node user, to feature detect which version of node / io.js my code is running on. Update: Nevermind, I can check Update 2: it turns out I need the async version anyway because I'll be using let's encrypt and I have to do some lazy loading for performance reasons. |
See my comment here: nodejs/node-v0.x-archive#9236 (comment) |
This is a DIFFERENT bug. (and #867 is yet another different bug) The problem here is that on OS X the callback is optional (if you return synchronously, it works) but on ARM returning synchronously is not supported and you MUST use the callback. |
You must use the callback on every platform. I don't think that there is any way to opt-out from it, unless the |
Oh, I didn't see this comment here before. I'll close the issue, but I'm interested to retest since I originally claimed to have tested it on 2 devices with 1.2 and 1 with 0.12... |
Originally I found this bug #867 on ARM6 and while testing further on OS X I found a workaround.
I took my band-aided test case back to my Rapsberry Pi to test and found that the https request still just hangs forever.
I commented out the
SNICallback
entirely and found that the certificates I'm loading are working by themselves, but the SNICallback is broken.To experience the hang, simply uncomment the
SNICallback
block.The text was updated successfully, but these errors were encountered: