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
This enables chromium to connect to circuits websockets again #161
Conversation
Not sure if it is a good idea to just echo the requested protocols, but if you look at the specs, they _are_ a bit *mad*: http://www.rfc-editor.org/rfc/rfc6455.txt (Pp. 6 ff.) - the IETF also instantiated a subprotocol registry (clearly: wtf!?)
@spaceone What do you think? And... WTH? Travis-CI doesn't have Python 2.7 anymore?! |
@ri0t Thanks for doing this! |
The |
@spaceone What did you find? Shall we merge this PR in as-is anyway? :) If it solves the immediate problem I don't see why not :) We can always iterate and improve upon it alter! |
There is no regression in Chromium - at least not in Chromium 51. @ri0t which chromium version do you use? You can always add a handler on your own which picks a subprotocol. |
See spaceone@7f46e45 |
Can we merge this or is this a regression in Chromium? |
@spaceone: sorry for the late reply. The behaviour is the same no matter which chromium-version i use, even the android ones exhibit the same. I just checked with 50.
Whereas, when i echo back the protocols like in the PR, i have no problem. The connection is established thus:
And yes, you're completely right, when leaving out the subprotocol, it works as expected. Did not know, one could just leave that out :D |
What's happenning with this? |
IMHO either WONTFIX/INVALID or merge my fix which adds a function to select the subprotocol: master...spaceone:websocket_subprotocol |
I added my commit also to circuits.http: https://github.com/spaceone/circuits.http/blob/260bf3bc810fd5e281319aefb86110c75f30eaa0/circuits/http/server/connection/websocket.py |
I thought we merged your fix already? James Mills / prologic E: prologic@shortcircuit.net.au On Sun, Nov 6, 2016 at 7:18 PM, Florian Best notifications@github.com
|
Please don't confuse this issue with another issue. Maybe you should read the messages here again. |
Sorry :) I'll have a closer look at this later. James Mills / prologic E: prologic@shortcircuit.net.au On Sun, Nov 6, 2016 at 7:35 PM, Florian Best notifications@github.com
|
Merged in my fix: #201 |
Not sure if it is a good idea to just echo the requested protocols, but if you look at the specs, they are a bit mad: http://www.rfc-editor.org/rfc/rfc6455.txt (Pp. 6 ff.) - the IETF also instantiated a subprotocol registry (clearly: wtf!?)
Fixes #168