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 <<a href="mailto:exarkun@divmod.com">exarkun@divmod.com
</a>> 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 <<a href="mailto:mrsalty0@gmail.com">
mrsalty0@gmail.com</a>> wrote:<br>>Greetings,<br>><br>>I'm a newcomer to twisted and am struggling a little with the learning<br>>curve.<br>>I have an idea for an app that I believe is ideally suited for twisted
<br>>though I<br>>could use some help finding the right way to approach it.<br>><br>>It performs a status check by getting a page from a web server.<br>>It calculates the time it took to download the page and also can check that
<br>>the<br>>content matches a predefined string.<br>><br>>That part of it is working fine but I'd like to take it a step further.<br>>I need a way to impose a limit on how long it waits to receive a response so
<br>>that I can detect<br>>unresponsive hosts. I must say that I'm at a loss as to how to add such a<br>>timeout to my code.<br>>Any pointers or examples would be greatly appreciated.<br><br></div>You can pass a timeout keyword argument to getPage. 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>