-
Notifications
You must be signed in to change notification settings - Fork 337
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
http: Fix WebSockets with Firefox #1550
base: master
Are you sure you want to change the base?
Conversation
ac000
commented
Jan 27, 2025
•
edited
Loading
edited
Hi @ac000, |
True, as the code currently stands we are assuming that we only upgrade to websockets. I guess strictly speaking we should check that's the case... but I would probably do that as a separate patch to this as this patch simply fixes the problem of determining if we are upgrading the connection. |
Actually we do already check the If we find This combination is then checked for in if (h1p->connection_upgrade && h1p->upgrade_websocket) { So I think we're all good, right? |
Correct. |
Firefox (going back a couple of years at least) was unable to open a WebSocket connection to Unit due to it sending a Connection header of Connection: keep-alive, Upgrade However in Unit we were expecting only a single value in the header. Fix the 'Connection' parsing in nxt_h1p_connection() to address this. Closes: nginx#772 Signed-off-by: Andrew Clayton <[email protected]>
Not sure it makes a lot of sense, but sure, we can do that... |
|