Chrome doesn't establish a WebSocket when the permessage-deflate extension offer is not accepted
Reported by
phil.dk...@gmail.com,
Apr 3 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Steps to reproduce the problem: 1. Build RateServer.java and ClientEventListener.java and run 'main' in the RateServer class 2. Load chat.html in Chrome preferably using a webserver on the same machine (I used a Tomcat maven plugin) 3. Type: ws://localhost:6789 into the connection URL target 4. Press the 'Connect' button. 5. The websocket onOpen method in the browser should fire allowing you to press 'Echo message' sending a message to the server. Note, the server does not echo the message back at this stage (not coded). 6. Now, to reproduce the problem...comment out the line right near the end of RateServer which is preceded with the comment "Chrome needs this...", compile and rerun the test in which the server is opting not to deflate. In this last test, when the 'Connect' button is pressed on the chat page in the browser, the onOpen method in the client websocket isn't triggered and the 'Echo Message' button remains disabled. What is the expected behavior? The expected behaviour is that the websocket client, seeing no permessage-deflate in the response handshake from the server should accept the handshake from the server, trigger onOpen an proceed without deflating messages. What went wrong? The javascipt API for websockets appears to insist on permessage-deflate being accepted by the server which is not true to the IETF specification. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 56.0.2924.87 Channel: n/a OS Version: OS X 10.9.5 Flash Version:
,
Apr 3 2017
,
Apr 3 2017
,
Apr 4 2017
Could you provide a net-internals log?
,
Apr 5 2017
,
Apr 5 2017
I am having trouble reproducing this problem at the moment. I will investigate and report back with more information as request or suggest this is closed.
,
Apr 5 2017
Thank you for providing more feedback. Adding requester "yhirano@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 5 2017
,
Apr 6 2017
Thanks, I'm closing this issue. Feel free to reopen it. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by ranjitkan@chromium.org
, Apr 3 2017