Skip to content

Commit

Permalink
[giow] (1) clarify the precise way an eventsource garbage collection …
Browse files Browse the repository at this point in the history
…affects the underlying connections

git-svn-id: http://svn.whatwg.org/webapps@6202 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 9, 2011
1 parent 00572a8 commit 9bab45c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
12 changes: 11 additions & 1 deletion complete.html
Expand Up @@ -78999,7 +78999,17 @@ <h4 id=garbage-collection-1><span class=secno>11.2.8 </span>Garbage collection</
invoked from to the <code><a href=#eventsource>EventSource</a></code> object itself.</p>

<p>If an <code><a href=#eventsource>EventSource</a></code> object is garbage collected while
its connection is still open, the connection must be closed.</p>
its connection is still open, the user agent must cancel any
instance of the <a href=#fetch title=fetch>fetch</a> algorithm opened by
this <code><a href=#eventsource>EventSource</a></code>, discarding any <a href=#concept-task title=concept-task>tasks</a> <a href=#queue-a-task title="queue a
task">queued</a> for them, and discarding any further data
received from the network for them.</p>

<p class=note>It's possible for one active network connection to
be shared by multiple <code><a href=#eventsource>EventSource</a></code> objects and their
<a href=#fetch>fetch</a> algorithms, which is why the above is phrased in
terms of canceling the <a href=#fetch>fetch</a> algorithm and not the
actual underlying download.</p>


<h4 id=iana-considerations><span class=secno>11.2.9 </span>IANA considerations</h4>
Expand Down
13 changes: 12 additions & 1 deletion source
Expand Up @@ -89682,7 +89682,18 @@ data:&nbsp;test</pre>
invoked from to the <code>EventSource</code> object itself.</p>

<p>If an <code>EventSource</code> object is garbage collected while
its connection is still open, the connection must be closed.</p>
its connection is still open, the user agent must cancel any
instance of the <span title="fetch">fetch</span> algorithm opened by
this <code>EventSource</code>, discarding any <span
title="concept-task">tasks</span> <span title="queue a
task">queued</span> for them, and discarding any further data
received from the network for them.</p>

<p class="note">It's possible for one active network connection to
be shared by multiple <code>EventSource</code> objects and their
<span>fetch</span> algorithms, which is why the above is phrased in
terms of canceling the <span>fetch</span> algorithm and not the
actual underlying download.</p>


<h4>IANA considerations</h4>
Expand Down

0 comments on commit 9bab45c

Please sign in to comment.