<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">I am using twisted.web.client.Agent to post sms messages<div><br></div><div>Occasionally I hit a problem where I do not get a response back.</div>
<div><br></div><div>I have looked around and seen various comments about timeouts with Agent.</div><div><br></div><div>One message had a comment that they had added an option to Agent to pass a timeout parameter to the connect method.</div>
<div><br></div><div>But it would seem this only applies to getting connected. Once connected the timeout is cleared.</div><div><br></div><div>I assume I would need to set up up some sort of callLater to fire in say 30 seconds and if the deferred has not fired, fire it with the timeout.</div>
<div><br></div><div>I assume I would also need to somehow drop the connection that is hung.</div><div><br></div><div>Now I am not too sure how I would do this with Agent and the request or response.</div><div><br></div><div>
I imagine many people will have already solved this problem but have not seen any info on how they went about this.</div><div><br></div><div>If someone could give me a few pointers as to what I should look at I would appreciate it very much.</div>
<div><br></div><div>Regards</div><div><br></div><div>John Aherne</div><div><br></div></span>