W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [eventsource] Connection close on EventSource collection

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 9 Jun 2011 07:17:22 +0000 (UTC)
To: Glenn Maynard <glenn@zewt.org>
cc: public-webapps@w3.org
Message-ID: <Pine.LNX.4.64.1106090709060.19153@ps20323.dreamhostps.com>
On Mon, 28 Feb 2011, Glenn Maynard wrote:
> >
> > 10 Garbage collection
> > If an EventSource object is garbage collected while its connection is
> > still open, the connection must be closed.
> 
> Multiple EventSource instances may share the same underlying connection.  
> If this happens, and just one EventSource object is collected (eg. a tab 
> closed), the connection shouldn't be closed--it's still in use.
> 
> Should this instead cancel the fetch algorithm for the EventSource, as 
> with "aborting a document load" (HTML5)?

Well spotted. Fixed as you suggest. Thanks.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 9 June 2011 07:18:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT