Re: [eventsource] Connection close on EventSource collection

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 UTC