[Twisted-Python] Really Basic clarification on defers
johnaherne at rocs.co.uk
Wed Aug 5 05:35:59 EDT 2009
On Wed, Aug 5, 2009 at 1:11 AM, Aaron Bush <asb.bush at gmail.com> wrote:
> 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.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
Thanks for the reply.
I have spent some time trying to find out how we might deal with timeouts
and not found anything we can use.
I'll take a look at that and see what it does.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python