[Twisted-Python] Really Basic clarification on defers

Aaron Bush asb.bush at gmail.com
Tue Aug 4 20:11:30 EDT 2009

A note on how I handled a similar situation in regards to the timeout
requirements you seem to have:

I had a similar setup where I was forwarding data from clients to servers
and back and forth, etc.  I wanted to timeout the connection after some idle
time and ended up using the TimeoutMixin found in
twisted.protocols.policies.  It probably does exactly what you are doing but
via a simple class inheritance and variable set.


On Tue, Aug 4, 2009 at 2:35 PM, Kevin Horn <kevin.horn at gmail.com> wrote:

> On Tue, Aug 4, 2009 at 10:08 AM, John Aherne <johnaherne at rocs.co.uk>wrote:
>> This is a really basic problem we are trying to decide about,
>> One side A receives some input from a tcp port - about 100-200 characters,
>> and forwards it to another port B. We do not need to wait for any response.
>> If we get a response we pick that up through line receiver. We also run a
>> calllater to check if we got a response on linereceiver within the timeframe
>> specified. If not we drop the connection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090804/7a1da860/attachment-0001.htm 

More information about the Twisted-Python mailing list