Ah yes, I should have thought to check the source for web.client.<br><br>Thank You!<br><br>-Jake<br><br><br><div class="gmail_quote">On Nov 29, 2007 7:30 PM, Jean-Paul Calderone &lt;<a href="mailto:exarkun@divmod.com">exarkun@divmod.com
</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Thu, 29 Nov 2007 18:45:27 -0500, J Davis &lt;<a href="mailto:mrsalty0@gmail.com">
mrsalty0@gmail.com</a>&gt; wrote:<br>&gt;Greetings,<br>&gt;<br>&gt;I&#39;m a newcomer to twisted and am struggling a little with the learning<br>&gt;curve.<br>&gt;I have an idea for an app that I believe is ideally suited for twisted
<br>&gt;though I<br>&gt;could use some help finding the right way to approach it.<br>&gt;<br>&gt;It performs a status check by getting a page from a web server.<br>&gt;It calculates the time it took to download the page and also can check that
<br>&gt;the<br>&gt;content matches a predefined string.<br>&gt;<br>&gt;That part of it is working fine but I&#39;d like to take it a step further.<br>&gt;I need a way to impose a limit on how long it waits to receive a response so
<br>&gt;that I can detect<br>&gt;unresponsive hosts. I must say that I&#39;m at a loss as to how to add such a<br>&gt;timeout to my code.<br>&gt;Any pointers or examples would be greatly appreciated.<br><br></div>You can pass a timeout keyword argument to getPage. &nbsp;This will set the
<br>maximum time which is allowed to elapsed between when the TCP connection<br>is established to the remote host and when the page is completely loaded.<br><br>Jean-Paul<br><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></blockquote></div><br>