-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Handshake authorization stuck. #1934
Comments
Could you perhaps be a bit more specific as to the environment from which you are experiencing this issue? (Browser, Node version, OS, etc.) I wrote a sample test and was not able to reproduce the issue. Let me know if I am misunderstanding anything. |
@EugeneKostrikov, maybe you're experience this issue: #1888 |
Experiencing exactly the same problem that @EugeneKostrikov has mentioned. setTimeout works only when client has really strong connection, otherwise he won't get Tried with throttling - same result, won't receive Socket.IO - 1.6.0 PS. to fix this issue for now, we can replace engine with uWebSockets (e.g.): https://github.com/uWebSockets/uWebSockets#i-would-stay-away-from-these-projects |
For future readers: this was fixed in Socket.IO v3 Documentation: |
Hello,
I'm trying to figure out how to fail authorization correctly. If i callback with error from the middleware the server is getting stuck. Tried both middleware style and
io.set('authorization')
. The code is as follows.Client is the same for both scenarios:
Server with
io.set
Server with middleware
It looks like the problem is
transport
. The state is stillopening
when i fail the auth. However if i use timeouts, it iswritable
. The client does not get any event at all.If i do not fail the auth -
connect
event fires.Any idea what is wrong here?
The text was updated successfully, but these errors were encountered: