Closed Bug 711886 Opened 13 years ago Closed 8 years ago

Refuse connection if server replies with non-matching subprotocol

Categories

(Core :: Networking: WebSockets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jduell.mcbugs, Assigned: CuveeHsu)

Details

(Whiteboard: [http-conn][necko-active])

Attachments

(1 file, 2 obsolete files)

Splitting out from bug 666349 attachment 582496 [details] [diff] [review] (carring forward patrick's +r) The test for this is currently failing on some tryservers (mainly linux, but I've seen windows too). The symptom is that the WS connection hangs instead of failing. I suspect some sort of pywebsocket issue (maybe python version specific?) is causing the server to barf w/o failing the connection, so we hang. As an extra piece of fun, the mochitest harness reports this as ERROR TEST-UNEXPECTED-FAIL | test_websocket.html | Test timed out. TEST-END | /tests/content/base/test/test_websocket.html | finished in 325819ms ERROR TEST-UNEXPECTED-FAIL | test_websocket_basic.html | Should get error in test-47! i.e it's wrongly reporting the test as being in test_websocket_basic.html. I'm gonna try this on python 2.5 and see what happens.
Attachment #582716 - Flags: review+
Whiteboard: [http-conn]
Hi Jason, do you still see the bug of pywebsocket which prevented this change from being committed?
Bug still present in 37
jason, we should get this landed - right?
Assignee: nobody → jduell.mcbugs
Flags: needinfo?(jduell.mcbugs)
Whiteboard: [http-conn] → [http-conn][necko-active]
In HyBi ML, there we're seeing rough rough consensus on that subprotocol comparison should be made case-sensitively. See this thread http://www.ietf.org/mail-archive/web/hybi/current/threads.html#10719 I summarized interoperability issue between Chromium and Firefox in this post. http://www.ietf.org/mail-archive/web/hybi/current/msg10727.html
Attachment #582716 - Attachment is obsolete: true
Flags: needinfo?(jduell.mcbugs)
Attachment #8751348 - Flags: review+
Michal, please take a look at this at some point when you've got cycles. IIRC if you push this to try again you'll see that we have a web spec test that for some reason thinks that the comparison should be case-insensitive, in contrast to comment 4. I.e. I think it may just be a test change needed to land this.
Flags: needinfo?(jduell.mcbugs) → needinfo?(michal.novotny)
Junior is going to take a look at it.
Assignee: jduell.mcbugs → juhsu
Flags: needinfo?(michal.novotny)
Keywords: checkin-needed
Attachment #8861821 - Attachment is patch: true
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9a3a29341427 Fail Websocket if server replies with non-matching subprotocol, r=mcmanus
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: