[html5] r6202 - [giow] (1) clarify the precise way an eventsource garbage collection affects the [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 9 00:17:37 PDT 2011
Author: ianh
Date: 2011-06-09 00:17:34 -0700 (Thu, 09 Jun 2011)
New Revision: 6202
Modified:
complete.html
source
Log:
[giow] (1) clarify the precise way an eventsource garbage collection affects the underlying connections
Modified: complete.html
===================================================================
--- complete.html 2011-06-09 06:57:24 UTC (rev 6201)
+++ complete.html 2011-06-09 07:17:34 UTC (rev 6202)
@@ -78999,9 +78999,19 @@
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>
<h5 id=text/event-stream><span class=secno>11.2.9.1 </span><dfn><code>text/event-stream</code></dfn></h5>
Modified: source
===================================================================
--- source 2011-06-09 06:57:24 UTC (rev 6201)
+++ source 2011-06-09 07:17:34 UTC (rev 6202)
@@ -89682,9 +89682,20 @@
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>
<h5><dfn><code>text/event-stream</code></dfn></h5>
More information about the Commit-Watchers
mailing list