W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

[eventsource] Connection close on EventSource collection

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 28 Feb 2011 11:44:19 -0500
Message-ID: <AANLkTi=3Ugje5G0Xn5PhWJ-3vGqtLxSaXuG-A=QeDnbM@mail.gmail.com>
To: public-webapps@w3.org
> 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)?

-- 
Glenn Maynard
Received on Monday, 28 February 2011 16:44:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:16 UTC