Closed Bug 710964 Opened 13 years ago Closed 13 years ago

No longer dispatch incoming WebSocket messages in CLOSING state

Categories

(Core :: Networking: WebSockets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: jduell.mcbugs, Assigned: jduell.mcbugs)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

Attached patch v1Splinter Review
The latest (W3C Candidate Recommendation 08 December 2011) websocket spec changed message dispatch behavior: a websocket must no longer dispatch incoming messages once it is in the CLOSING state (see section 5, "When a WebSocket message has been received", bullet point 1).

This fix is quite simple: just check for OPEN state during dispatch.

I've verified that the test fails w/o the patch, and succeeds with it.
Attachment #581872 - Flags: review?(bugs)
Attachment #581872 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/a558bfcac2e6
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Assignee: nobody → jduell.mcbugs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: