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] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Dustin J. Mitchell
You're absolutely right. I wasn't arguing with you, but with JP :) Dustin On Tue, Jan 14, 2014 at 2:06 PM, Glyph Lefkowitz wrote: > On Jan 14, 2014, at 6:27 AM, Dustin J. Mitchell wrote: > > Second, this has nothing whatsoever to do with whether the I/O is > blocking or not. Twisted apps can

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Glyph Lefkowitz
On Jan 14, 2014, at 6:27 AM, Dustin J. Mitchell wrote: > Second, this has nothing whatsoever to do with whether the I/O is > blocking or not. Twisted apps can and, believe me from experience, do > suffer from stuck TCP connections. Sure, the wasted resources in this > case are smaller (just a f

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Phil Mayers
On 14/01/14 15:10, Dustin J. Mitchell wrote: On Tue, Jan 14, 2014 at 10:05 AM, Phil Mayers wrote: I'm wondering if TCP keepalive isn't any use to you in this regard? It is, but only in cases where we can tweak kernel parameters appropriately so that the timeout is not >2h. Hmm. I see Twiste

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Dustin J. Mitchell
On Tue, Jan 14, 2014 at 10:05 AM, Phil Mayers wrote: > I'm wondering if TCP keepalive isn't any use to you in this regard? It is, but only in cases where we can tweak kernel parameters appropriately so that the timeout is not >2h. > (and what do Mozilla do with Twisted? :o) Buildbot, among othe

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Phil Mayers
On 14/01/14 14:27, Dustin J. Mitchell wrote: There are two things wrong with your scenario. First, in any production or production-ready environment, your software needs to correctly handle stuck TCP connections. With the proliferation of "smart" network equipment (session-tracking firewalls, e

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread Dustin J. Mitchell
There are two things wrong with your scenario. First, in any production or production-ready environment, your software needs to correctly handle stuck TCP connections. With the proliferation of "smart" network equipment (session-tracking firewalls, etc.), this is much more common than it was five

Re: [Twisted-Python] Exit all threads upon KeyboardInterrupt

2014-01-14 Thread exarkun
On 13 Jan, 11:31 pm, gl...@twistedmatrix.com wrote: On Jan 12, 2014, at 4:42 PM, johnnadre wrote: On Sun, 12 Jan 2014 14:03:24 -0800 wrote On 09:01 pm, johnna...@zoho.com wrote: Hi, I want to exit my application immediately when CTRL+C is pressed, however reactor hangs when th

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