Skip to content

Commit

Permalink
[giow] (1) Make WebSocket's garbage collection behaviour wait for que…
Browse files Browse the repository at this point in the history
…ued data.

git-svn-id: http://svn.whatwg.org/webapps@5189 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 22, 2010
1 parent 02d594c commit 9f6e647
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions complete.html
Expand Up @@ -72194,6 +72194,11 @@ <h5 id=garbage-collection-1><span class=secno>10.3.3.2 </span>Garbage collection
<a href=#concept-task title=concept-task>task</a> must not be garbage collected
if there are any event listeners registered for <code title=event-close>close</code> events.</p>

<p>A <code><a href=#websocket>WebSocket</a></code> object with <a href=#websocket-connection-is-established title="WebSocket
connection is established">an established connection</a> that has
data queued to be transmitted to the network must not be garbage
collected.</p>

<p>If a <code><a href=#websocket>WebSocket</a></code> object is garbage collected while its
connection is still open, the user agent must <a href=#close-the-websocket-connection>close the
WebSocket connection</a>.</p>
Expand Down
5 changes: 5 additions & 0 deletions source
Expand Up @@ -81248,6 +81248,11 @@ socket.onopen = function () {
if there are any event listeners registered for <code
title="event-close">close</code> events.</p>

<p>A <code>WebSocket</code> object with <span title="WebSocket
connection is established">an established connection</span> that has
data queued to be transmitted to the network must not be garbage
collected.</p>

<p>If a <code>WebSocket</code> object is garbage collected while its
connection is still open, the user agent must <span>close the
WebSocket connection</span>.</p>
Expand Down

0 comments on commit 9f6e647

Please sign in to comment.