W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] [Server-Sent Events] Infinite reconnection clarification

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 27 Apr 2012 09:15:12 -0700
Message-ID: <CAAWBYDCi08Lhza7xLvmP2CumrFs-KEQh60WX-rgaGRUPLQV=5Q@mail.gmail.com>
On Fri, Apr 27, 2012 at 4:12 AM, Odin H?rthe Omdal <odinho at opera.com> wrote:
> I think I should do a TLDR since I didn't really get any answers:
>
> 1. Should EventSource *ever* time out once it has once been connected?
> 2. What do browsers do today? What do you think is a good thing to do?
>
> I tried Opera, Firefox and Chromium for question 2.
>
> Opera: Gives up after 2-3 minutes.
> Firefox: Gives up after ~15 minutes.
> Chromium: Doesn't ever give up. Longer and longer retry intervals, upper
> limit (I think) of 1 minute between each retry.

I think the best thing for users is infinite reconnect with
exponential backoff (the Chrome behavior).  This gives the page the
best chance of "just working" when the user gets back into an area
with connection.

Waking up the radio once a minute isn't bad, if we can coalesce all
our EventSource requests to use the same window.

~TJ
Received on Friday, 27 April 2012 09:15:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT