Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-14 Thread Glyph Lefkowitz
On Jan 13, 2014, at 3:37 PM, Glyph Lefkowitz wrote: > KQueue's gimpiness is entirely to do with deficiencies in its behavior with > regard to weird file descriptor types, mostly PTYs. Hmm. And actually, I believe, this was fixed on Mavericks but we haven't updated our test configuration yet.

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-14 Thread Sumanth Puram
Thanks Jean. Changing reactor kQueue on OSX fixed this issue. On Mon, Jan 13, 2014 at 7:49 PM, wrote: > On 01:28 pm, spu...@kiwiup.com wrote: > >> Hi all, >> >> I am doing load testing on my twisted SSL server. I spawn threads(~2000) >> from the application and each thread will act as a SSL cl

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Glyph Lefkowitz
On Jan 13, 2014, at 6:22 AM, Laurens Van Houtven <_...@lvh.io> wrote: > On Mon, Jan 13, 2014 at 3:19 PM, wrote: > select() has a hard limit that is often 1024. Make sure you're not using the > select()-based reactor (which I think is probably the default on OS X). > > Jean-Paul > > What is t

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Laurens Van Houtven
On Mon, Jan 13, 2014 at 3:19 PM, wrote: > select() has a hard limit that is often 1024. Make sure you're not using > the select()-based reactor (which I think is probably the default on OS X). > > Jean-Paul > What is the A-grade reactor on OS X? I thought it was cfreactor, but the docs appear t

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread exarkun
On 01:28 pm, spu...@kiwiup.com wrote: Hi all, I am doing load testing on my twisted SSL server. I spawn threads(~2000) from the application and each thread will act as a SSL client and connect to the server. [snip] Now it fails after 1010 successful connections. I checked the number of open

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Laurens Van Houtven
Hi Sumanth, You probably want to look at the limits launchd is imposing. Consider: launchctl limit maxfiles 5000 5000 You can make this permanent by pumping that line (minus launchctl) into /etc/launchd.conf. hth lvh ___ Twisted-Python mailing list

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Sumanth Puram
Yes, 1010 looks more like a 1024 limit. I am using a Mac OSX 10.8. I have set the limit with 'ulimit -n 1' for the current shell where I was running the server and the same for client. I have tried to increase the limit for number of files, but could not find any other way than this. sumanth

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Laurens Van Houtven
Hi Sumanth, Still sounds like an open file problem. What platform? How did you set the number of files higher that 256? Take a look at /etc/security/limits.conf :-) cheers lvh ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twis

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Wolfgang Rohdewald
Am Montag, 13. Januar 2014, 18:58:01 schrieb Sumanth Puram: > Now it fails after 1010 successful connections which limit did you raise? Per process or systemwide? 1010 sound like you have a limit of 1024 somewhere -- Wolfgang ___ Twisted-Python maili

[Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Sumanth Puram
Hi all, I am doing load testing on my twisted SSL server. I spawn threads(~2000) from the application and each thread will act as a SSL client and connect to the server. Client code is straight forward. It creates a socket, does SSL wrap and connects to the server. Once all threads connect to the