[Twisted-Python] Question about StreamServerEndpointService

2011-04-26 Thread Albert Brandl
Hi! I have a question regarding `t.a.i.StreamServerEndpointService`. This class maintains an attribute `_waitingForPort` that holds the deferred returned by the `listen` method of the endpoint. If this attribute is None, the method `privilegedStartService` is called by `startService`, triggeri

[Twisted-Python] some confusion with daemonising my twisted application.

2011-04-26 Thread hackingKK
Hello all. I have been using the twisted library for quite some time and I must say it is the best library for xmlrpc. I have a tcp server listening on a port and I use reactor.run() to start it. Now I want to learn how to daemonise the entire code. I am paisting the code below. from twisted.we

[Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Juan Antonio Ibañez Santorum
Hello! I have a Linux box serving my twisted app. All works ok except after some days running (where I can see my CPU going to 100%). I saw that CPU goes 100% usage when the app reaches to 1024 opened descriptors (sockets). It seems TM isn't closing some connections when clients loose connectio

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Glyph Lefkowitz
On Apr 26, 2011, at 11:42 AM, Juan Antonio Ibañez Santorum wrote: >I have a Linux box serving my twisted app. All works ok except after some > days running (where I can see my CPU going to 100%). I saw that CPU goes 100% > usage when the app reaches to 1024 opened descriptors (sockets). It s

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Luke Marsden
On Tue, 2011-04-26 at 17:42 +0200, Juan Antonio Ibañez Santorum wrote: > Hello! >I have a Linux box serving my twisted app. All works ok except > after some days running (where I can see my CPU going to 100%). I saw > that CPU goes 100% usage when the app reaches to 1024 opened > descriptors (s

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Ray Cote
- Original Message - > From: "Luke Marsden" > To: "Twisted general discussion" > Sent: Tuesday, April 26, 2011 2:08:40 PM > Subject: Re: [Twisted-Python] 100% CPU on high opened descriptors > On Tue, 2011-04-26 at 17:42 +0200, Juan Antonio Ibañez Santorum wrote: > > Hello! > >I have a

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Glyph Lefkowitz
On Apr 26, 2011, at 4:34 PM, Ray Cote wrote: > - Original Message - >> From: "Luke Marsden" >> To: "Twisted general discussion" >> Sent: Tuesday, April 26, 2011 2:08:40 PM >> Subject: Re: [Twisted-Python] 100% CPU on high opened descriptors >> On Tue, 2011-04-26 at 17:42 +0200, Juan Ant

Re: [Twisted-Python] some confusion with daemonising my twisted application.

2011-04-26 Thread Andrew Bennetts
hackingKK wrote: > Hello all. > I have been using the twisted library for quite some time and I must say > it is the best library for xmlrpc. > I have a tcp server listening on a port and I use reactor.run() to start it. > Now I want to learn how to daemonise the entire code. […] > So I just want

Re: [Twisted-Python] Question about StreamServerEndpointService

2011-04-26 Thread Glyph Lefkowitz
On Apr 26, 2011, at 6:21 AM, Albert Brandl wrote: > I might be wrong, but this looks like a bug to me. Maybe I didn't > understand how to use this class, though... I haven't investigated too thoroughly, but it sounds like you have, and this does indeed sound like a bug. Could you write it up

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Juan Antonio Ibañez Santorum
Is that the unique way to get mor than 1024 simultaneous connections? Regads 2011/4/26 Luke Marsden > On Tue, 2011-04-26 at 17:42 +0200, Juan Antonio Ibañez Santorum wrote: > > Hello! > >I have a Linux box serving my twisted app. All works ok except > > after some days running (where I can

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Luke Marsden
>> 2011/4/26 Luke Marsden >> You can also switch to using the "poll" reactor On Wed, 2011-04-27 at 08:01 +0200, Juan Antonio Ibañez Santorum wrote: > Is that the unique way to get mor than 1024 simultaneous connections? > > > Regads > On Linux and BSD, yes. See http://twistedmatrix.com/docume

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-04-26 Thread Juan Antonio Ibañez Santorum
Must I make any change appart from start the app with twistd plus '-r poll'? 2011/4/27 Luke Marsden > >> 2011/4/26 Luke Marsden > >> You can also switch to using the "poll" reactor > > On Wed, 2011-04-27 at 08:01 +0200, Juan Antonio Ibañez Santorum wrote: > > Is that the unique way to get mor t