<?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>14530</bug_id>
          
          <creation_ts>2011-10-21 14:00:16 +0000</creation_ts>
          <short_desc>Hi, In Server-Sent Events Section &quot;Processing model&quot;, it should be clearly stated how to avoid the pipelining of HTTP requests on the connection used for an event source. HTTP pipelining - decribed in RFC 2616 / section 8.1.2.2 - is the possibility for a</short_desc>
          <delta_ts>2011-10-27 00:03:52 +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>NEEDSINFO</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>ian</cc>
    
    <cc>mike</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>58635</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-21 14:00:16 +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:
Hi,

In Server-Sent Events Section &quot;Processing model&quot;, it should be clearly stated
how to avoid the pipelining of HTTP requests on the connection used for an
event source.

HTTP pipelining - decribed in RFC 2616 / section 8.1.2.2 - is the possibility
for a user agent to send a new HTTP request on a connection before the HTTP
response of the previous request on the same connection is received.
On a connection used for server-sent events, pipelining new HTTP requests
cause them to hang forever, since the event stream is potentially infinite. 
I had this issue recently and some images in my web app were never loaded.

I see 2 possible solutions for this type of issue (not necessarily exclusive,
of course):
1- it should be clearly stated that a user agent shall not use a connection
with a pending text/eventstream typed request for pipelining
2- The server should set a &quot;Connection: close&quot; HTTP header in the event-stream
response to prevent any reuse of the same connection by the user agent.

This second option solved the issue in my case, but, as I didn&apos;t find any
guideline on this subject in the current Server-Sent Events draft, I decided
to send you this feedback.

Hope this can help.

Jean-Luc (jean-luc@comimos.com)

Posted from: 90.32.162.46
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58870</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 05:06:29 +0000</bug_when>
    <thetext>Why would you need to avoid pipelining?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59034</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-27 00:03:52 +0000</bug_when>
    <thetext>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: Did Not Understand Request
Change Description: no spec change
Rationale: see comment 1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>