This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14651 - i think the websocket garbage collection rules might need tweaking now that message can't be fired in CLOSING (can error be fired in CLOSING?)
Summary: i think the websocket garbage collection rules might need tweaking now that m...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 09:19 UTC by contributor
Modified: 2012-07-18 18:48 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2011-11-01 09:19:34 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html
Multipage: http://www.whatwg.org/C#garbage-collection-2
Complete: http://www.whatwg.org/c#garbage-collection-2

Comment:
 i think the websocket garbage collection rules might need tweaking now that
message can't be fired in CLOSING (can error be fired in CLOSING?)

Posted from: 88.131.66.80 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.15 Safari/535.7
Comment 1 Ian 'Hixie' Hickson 2011-11-01 15:40:33 UTC
Can you elaborate?
Comment 2 Simon Pieters 2011-11-01 15:44:05 UTC
The GC rules assume that 'message' events can be fired when readyState is CLOSING, so makes sure not to GC if there are listeners for 'message'. But since we now don't fire 'message' in CLOSING, we can allow the object to be GCed.
Comment 3 Ian 'Hixie' Hickson 2011-11-01 16:13:14 UTC
Oh, WebSocket. Sorry, I thought we were talking about EventSource.
Comment 4 contributor 2011-11-01 16:13:29 UTC
Checked in as WHATWG revision r6805.
Check-in comment: Allow a WebSocket object with only a message handler to be GC'ed once it gets to CLOSING.
http://html5.org/tools/web-apps-tracker?from=6804&to=6805