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

2010-05-27 Thread Simon Pieters
On Thu, 13 May 2010 16:47:34 +0200, Simon Pieters sim...@opera.com wrote: On Wed, 12 May 2010 20:01:11 +0200, Ojan Vafai o...@chromium.org wrote: On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@opera.com wrote: establishing a WebSocket connection: [[ Note: There is no limit to the

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

2010-05-27 Thread John Tamplin
On Thu, May 27, 2010 at 10:28 AM, Simon Pieters sim...@opera.com wrote: From our testing it seems that Vista has a limit of 1398 open sockets. Apparently Ubuntu has a limit of 1024 file descriptors per process. On Linux, that is just the default (which may vary between distros) and can be

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

2010-05-27 Thread Mike Shaver
On Thu, May 27, 2010 at 11:45 AM, John Tamplin j...@google.com wrote: On Thu, May 27, 2010 at 10:28 AM, Simon Pieters sim...@opera.com wrote: From our testing it seems that Vista has a limit of 1398 open sockets. Apparently Ubuntu has a limit of 1024 file descriptors per process. On Linux,

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

2010-05-14 Thread Perry Smith
On May 13, 2010, at 9:00 PM, Boris Zbarsky wrote: On 5/13/10 7:55 PM, Perry Smith wrote: Its not that hard and it won't happen that often. And it gives the javascript authors more control and choices. If a situation doesn't happen often, then historically speaking most authors will have

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

2010-05-13 Thread Simon Pieters
On Wed, 12 May 2010 20:01:11 +0200, Ojan Vafai o...@chromium.org wrote: On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@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

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

2010-05-13 Thread Simon Pieters
On Wed, 12 May 2010 20:51:59 +0200, Michael Nordman micha...@google.com wrote: On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@opera.com wrote: establishing a WebSocket connection: [[ Note: There is no limit to the number of established WebSocket connections a user agent can have

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

2010-05-13 Thread Perry Smith
On May 13, 2010, at 10:05 AM, Simon Pieters wrote: On Wed, 12 May 2010 20:51:59 +0200, Michael Nordman micha...@google.com wrote: On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@opera.com wrote: establishing a WebSocket connection: [[ Note: There is no limit to the number of

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

2010-05-13 Thread John Tamplin
On Thu, May 13, 2010 at 1:19 PM, Perry Smith pedz...@gmail.com wrote: [[ 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

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

2010-05-13 Thread Mike Shaver
On Thu, May 13, 2010 at 1:19 PM, Perry Smith pedz...@gmail.com wrote: Hosts have limits on open file descriptors but they are usually in the ten's of thousands (per process) on today's OSs. I have to admit, I'd be a little surprised (I think pleasantly, but maybe not) if I could open ten

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

2010-05-13 Thread Aryeh Gregor
On Thu, May 13, 2010 at 1:40 PM, Mike Shaver mike.sha...@gmail.com wrote: I have to admit, I'd be a little surprised (I think pleasantly, but maybe not) if I could open ten thousand file descriptors on the latest shipping Windows CE, or for that matter on an iPhone. ulimit -n tells me I can

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

2010-05-13 Thread Dmitry Titov
As an example from a bit different area, in Chrome the Web Workers today require a separate process per worker. It's not good to create too many processes so there is a relatively low limit per origin and higher total limit. Two limits help avoid situation when 1 bad page affects others. Once

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

2010-05-13 Thread Michael Nordman
I think that queuing in chrome bends the intent of the createWorker api just a little too far and will be happy to see it go away. I'd rather it failed outright then pretend to succeed when it really hasn't. (Actually that queuing code complicates the impl somewhat too... can you tell its been

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

2010-05-13 Thread Boris Zbarsky
On 5/13/10 7:55 PM, Perry Smith wrote: Its not that hard and it won't happen that often. And it gives the javascript authors more control and choices. If a situation doesn't happen often, then historically speaking most authors will have no provisions to handle it. Try browsing the web with

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

2010-05-12 Thread Simon Pieters
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

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

2010-05-12 Thread Ojan Vafai
On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@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

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

2010-05-12 Thread Ashley Sheridan
On Wed, 2010-05-12 at 11:01 -0700, Ojan Vafai wrote: On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@opera.com wrote: establishing a WebSocket connection: [[ Note: There is no limit to the number of established WebSocket connections a user

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

2010-05-12 Thread Michael Nordman
On Wed, May 12, 2010 at 4:31 AM, Simon Pieters sim...@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