<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 1:11 AM, Aaron Bush <span dir="ltr">&lt;<a href="mailto:asb.bush@gmail.com">asb.bush@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
A note on how I handled a similar situation in regards to the timeout requirements you seem to have:<br><br>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. <br>
<font color="#888888">
<br>-ab<br><br></font><div class="gmail_quote"><div class="im">On Tue, Aug 4, 2009 at 2:35 PM, Kevin Horn <span dir="ltr">&lt;<a href="mailto:kevin.horn@gmail.com" target="_blank">kevin.horn@gmail.com</a>&gt;</span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Tue, Aug 4, 2009 at 10:08 AM, John Aherne <span dir="ltr">&lt;<a href="mailto:johnaherne@rocs.co.uk" target="_blank">johnaherne@rocs.co.uk</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">

This is a really basic problem we are trying to decide about,<br><br><br></div><div class="im">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.<br>

<br>
</div></blockquote></div></blockquote></div>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div>Aaron<br><br>Thanks for the reply.<br><br>I have spent some time trying to find out how we might deal with timeouts and not found anything we can use.<br><br>I&#39;ll take a look at that and see what it does.<br>
<br>Regards<br><br>John Aherne<br><br>