[html5] r2875 - [e] (0) Make clear that EventSource objects don't reconnect on failure.

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 26 16:10:40 PST 2009


Author: ianh
Date: 2009-02-26 16:10:39 -0800 (Thu, 26 Feb 2009)
New Revision: 2875

Modified:
   index
   source
Log:
[e] (0) Make clear that EventSource objects don't reconnect on failure.

Modified: index
===================================================================
--- index	2009-02-26 09:19:43 UTC (rev 2874)
+++ index	2009-02-27 00:10:39 UTC (rev 2875)
@@ -45846,13 +45846,16 @@
   <code title=event-error><a href=#event-error>error</a></code> at the
   <code><a href=#eventsource>EventSource</a></code> object, and then <a href=#fetch>fetch</a> the
   event source resource again after a delay equal to the reconnection
-  time of the event source.</p>
+  time of the event source. <strong>Only if the user agent <a href=#reset-the-connection title="reset the connection">resets the connection</a> does the
+  connection get opened anew!</strong></p>
 
   <p>When a user agent is to <dfn id=fail-the-connection>fail the connection</dfn>, the user
   agent must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
   <code title=dom-EventSource-CLOSED><a href=#dom-eventsource-closed>CLOSED</a></code> and <a href=#queue-a-task>queue a
-  task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error><a href=#event-error>error</a></code> at the
-  <code><a href=#eventsource>EventSource</a></code> object.</p>
+  task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error><a href=#event-error>error</a></code> at the <code><a href=#eventsource>EventSource</a></code>
+  object. <strong>Once the user agent has <a href=#fail-the-connection title="fail the
+  connection">failed the connection</a>, it does <em>not</em>
+  attempt to reconnect!</strong></p>
 
   <hr><p>The <a href=#task-source>task source</a> for any <a href=#concept-task title=concept-task>tasks</a> that are <a href=#queue-a-task title="queue a
   task">queued</a> by <code><a href=#eventsource>EventSource</a></code> objects is the

Modified: source
===================================================================
--- source	2009-02-26 09:19:43 UTC (rev 2874)
+++ source	2009-02-27 00:10:39 UTC (rev 2875)
@@ -52372,15 +52372,19 @@
   <code title="event-error">error</code> at the
   <code>EventSource</code> object, and then <span>fetch</span> the
   event source resource again after a delay equal to the reconnection
-  time of the event source.</p>
+  time of the event source. <strong>Only if the user agent <span
+  title="reset the connection">resets the connection</span> does the
+  connection get opened anew!</strong></p>
 
   <p>When a user agent is to <dfn>fail the connection</dfn>, the user
   agent must set the <code
   title="dom-EventSource-readyState">readyState</code> attribute to
   <code title="dom-EventSource-CLOSED">CLOSED</code> and <span>queue a
   task</span> to <span>fire a simple event</span> named <code
-  title="event-error">error</code> at the
-  <code>EventSource</code> object.</p>
+  title="event-error">error</code> at the <code>EventSource</code>
+  object. <strong>Once the user agent has <span title="fail the
+  connection">failed the connection</span>, it does <em>not</em>
+  attempt to reconnect!</strong></p>
 
   <hr>
 




More information about the Commit-Watchers mailing list