[whatwg] [EventSource] Garbage collection rules

Ian Hickson ian at hixie.ch
Mon Jul 27 15:32:40 PDT 2009


On Fri, 10 Jul 2009, Stewart Brodie wrote:
> 
> The GC rules in section 9 seem overly permissive - if there is a 
> listener for message events but the script "forgets" to call close() 
> when the user navigates away, then the resources it is consuming cannot 
> be reclaimed.

Fixed.


> There is a small chance that it may be reclaimed if the server terminates
> the connection and a GC occurs before the UA is able to re-establish the
> connection (i.e. during the reconnection delay or the reconnection) [...]

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list