[whatwg] WebSockets: what to do when there are too many open connections

Simon Pieters simonp at opera.com
Thu May 13 07:47:34 PDT 2010


On Wed, 12 May 2010 20:01:11 +0200, Ojan Vafai <ojan at chromium.org> wrote:

> On Wed, May 12, 2010 at 4:31 AM, Simon Pieters <simonp at opera.com> wrote:
>
>> establishing a WebSocket connection:
>>
>> [[
>> Note: There is no limit to the number of established WebSocket  
>> connections
>> a user agent can have with a single remote host. Servers can refuse to
>> connect users with an excessive number of connections, or disconnect
>> resource-hogging users when suffering high load.
>> ]]
>>
>> Still, it seems likely that user agents will want to have limits on the
>> number of established WebSocket connections, whether to a single remote  
>> host
>> or multiple remote hosts, in a single tab or overall.
>
>
> Why? Is the concern that we'd run out of memory? Overload the user's  
> network
> connection?

If nothing else, the underlying OS might have a limit on the number of  
open connections.

-- 
Simon Pieters
Opera Software


More information about the whatwg mailing list