Re: [Twisted-Python] signalfd

2010-11-03 Thread James Y Knight
On Nov 3, 2010, at 10:23 PM, exar...@twistedmatrix.com wrote: > On 01:45 am, ndbeck...@gmail.com wrote: >> On modern linux, signalfd can be used to convert sigchld into an event >> on a >> file descriptor. Looks like just what is wanted for processProtocol. > > It does, indeed. I'm not sure it'

Re: [Twisted-Python] signalfd

2010-11-03 Thread exarkun
On 01:45 am, ndbeck...@gmail.com wrote: >On modern linux, signalfd can be used to convert sigchld into an event >on a >file descriptor. Looks like just what is wanted for processProtocol. It does, indeed. I'm not sure it's really worth bothering though. Here are the drawbacks of using signalf

[Twisted-Python] signalfd

2010-11-03 Thread Neal Becker
On modern linux, signalfd can be used to convert sigchld into an event on a file descriptor. Looks like just what is wanted for processProtocol. There is also a python interface here: https://launchpad.net/python-signalfd/+download This test seems to work for me: import signalfd import signal

Re: [Twisted-Python] Inconsistency in ReconnectingClientFactory

2010-11-03 Thread exarkun
On 12:01 pm, albert.bra...@weiermayer.com wrote: >Hi! > >The ReconnectingClientFactory class allows to define the instance >variable maxDelay. Its documentation is "Maximum number of seconds >between connection attempts." > >maxDelay is used in the retry() method to bound self.delay. But this >happ

[Twisted-Python] Inconsistency in ReconnectingClientFactory

2010-11-03 Thread Brandl, Albert
Hi! The ReconnectingClientFactory class allows to define the instance variable maxDelay. Its documentation is "Maximum number of seconds between connection attempts." maxDelay is used in the retry() method to bound self.delay. But this happens in the _first_ step of the calculation of sel