<?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>13761</bug_id>
          
          <creation_ts>2011-08-11 16:27:07 +0000</creation_ts>
          <short_desc>Now that event data can be discarded (if there is no newline before eof), the last id field value received should be stored in a buffer and set as the EventSource&apos;s lastEventId only when the event is actually dispatched. That way the id associated with th</short_desc>
          <delta_ts>2011-10-11 00:46:01 +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>normal</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>public-webapps</cc>
    
    <cc>vic99999</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54706</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-11 16:27:07 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Now that event data can be discarded (if there is no newline before eof), the
last id field value received should be stored in a buffer and set as the
EventSource&apos;s lastEventId only when the event is actually dispatched. That way
the id associated with the discarded event data can also be discarded.

Posted from: 89.233.225.89
User agent: Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; SonyEricssonMT15i Build/3.0.1.A.0.145) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56965</commentid>
    <comment_count>1</comment_count>
    <who name="">vic99999</who>
    <bug_when>2011-09-19 03:45:13 +0000</bug_when>
    <thetext>may be it&apos;s better to not process an event stream if there is no newline?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56994</commentid>
    <comment_count>2</comment_count>
    <who name="">vic99999</who>
    <bug_when>2011-09-19 16:10:02 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; may be it&apos;s better to not process an event stream if there is no newline?

*empty line</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58022</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-11 00:45:31 +0000</bug_when>
    <thetext>I don&apos;t understand comment 1 and comment 2.

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with original comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58023</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-11 00:46:01 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6658.
Check-in comment: Don&apos;t set the lastEventID unless you get a blank line after the event, so that interrupted events don&apos;t set it.
http://html5.org/tools/web-apps-tracker?from=6657&amp;to=6658</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>