-
Notifications
You must be signed in to change notification settings - Fork 2k
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
websocket proxy,what if the sever reject the connect with status other than 101 #627
Comments
becasue socket.write("HTTP/1.1 406 Not Acceptable\r\n"),the http proxy will just emit an response event other than upgrade event! |
please fix this bug as soon as possible,because it will make socket leave! |
@kd128 Can you see if running a |
I've added a complete test case for this bug here. Switching between socket.end and destroy does not have any effect. Proxied websocket connections that are rejected are left open. This is particularly problematic in browsers (other than Safari for some reason) because a websocket stuck in the connecting state actually blocks other attempts to connect to the same server, even from other tabs. |
it happen when sever dothing like
The text was updated successfully, but these errors were encountered: