<?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>20768</bug_id>
          
          <creation_ts>2013-01-25 03:50:49 +0000</creation_ts>
          <short_desc>TCP/IP disconnect detection issue AFAIK, only Chrome(WebKit?) uses TCP keepalive with 45 sec. interval; anyway, it is not easy to use native EventSource in other browser: there are no tcp keepali [...]</short_desc>
          <delta_ts>2013-04-30 17:52:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>vic99999</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82128</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-25 03:50:49 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/2012/WD-eventsource-20120426/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
TCP/IP disconnect detection issue
AFAIK, only Chrome(WebKit?) uses TCP keepalive with 45 sec. interval;

anyway, it is not easy to use native EventSource in other browser:
there are no tcp keepalive to detect broken connections;
there are no way to pass &quot;lastEventId&quot; to a new EventSource object;


Posted from: 83.146.108.107
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82129</commentid>
    <comment_count>1</comment_count>
    <who name="">vic99999</who>
    <bug_when>2013-01-25 03:53:22 +0000</bug_when>
    <thetext>see https://bugzilla.mozilla.org/show_bug.cgi?id=444328#c1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82410</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-01-31 17:40:05 +0000</bug_when>
    <thetext>You can pass lastEventId manually to the other side by encoding it in the URL, if you really need to.

I would recommend contacting the browser vendors, though. This seems to be an issue at a different layer than the EventSource spec itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82495</commentid>
    <comment_count>3</comment_count>
    <who name="">vic99999</who>
    <bug_when>2013-02-02 03:40:55 +0000</bug_when>
    <thetext>https://www.w3.org/Bugs/Public/show_bug.cgi?id=13104

i see, that for WebSockets the note about &quot;user agent may send ping...&quot; was added.

in case of EventSource:
&quot;User agent should use TCP-keepalives to detect disconnects&quot;

although, &quot;heartbeat timeout&quot; option will be better, because the default timeout may be too big.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84952</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-25 22:30:00 +0000</bug_when>
    <thetext>It doesn&apos;t seem like the Web page would be in a better position to determine what the right heartbeat value should be than the browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87025</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-30 17:52:23 +0000</bug_when>
    <thetext>WONTFIX per comment 4. Please re-open if you can elaborate on why it makes more sense for pages to control this than browsers; I don&apos;t really understand how an author could know the right values to use.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>