<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15495</bug_id>
          
          <creation_ts>2012-01-10 16:17:45 +0000</creation_ts>
          <short_desc>Update EventSource model to do automatic reconnect even in the face of network errors</short_desc>
          <delta_ts>2012-10-10 23:03:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Server-Sent Events (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>neilj</cc>
    
    <cc>odinho</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62477</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-01-10 16:17:45 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
I need some way of recovering from longer but still temporary failures,
without requiring a complete page refresh, and without requiring every all
events of interest to be rebound, or otherwise handled differently from any
other event.

This isn&apos;t an issue with the WebSocket and XMLHttpRequest API&apos;s, as those
interfaces already require one to implement an event passing scheme on top,
making it trivial to replace the underlying WebSocket or XMLHttpRequest. 
While such a scheme could also be implemented on top of EventSource, it seems
silly to stack	an different event source scheme on top of something called
&quot;EventSource&quot;.

Posted from: 70.64.129.37
User agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/10.04 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69801</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-10 20:00:23 +0000</bug_when>
    <thetext>The design assumes that when there is a network problem, the script will create a new object. This doesn&apos;t seem particularly burdensome...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71424</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-25 02:50:20 +0000</bug_when>
    <thetext>People have suggested we change the model here, so I&apos;ll have a look to see how to do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71884</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-07 18:03:12 +0000</bug_when>
    <thetext>*** Bug 18320 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75896</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-10-10 23:03:38 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7450.
Check-in comment: Change EventSource so that it retries the connection in case of certain 5xx errors and in case of DNS errors or failed connections at the TCP level
http://html5.org/tools/web-apps-tracker?from=7449&amp;to=7450</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>