Re: What is the timeout value of HTTP

2007-03-29 Thread Facundo Batista
ken wrote: > i.e. how long python will wait for a response in the below code? > >h = httplib.HTTP(self.url, 8080) > h.putrequest('GET', '/sample/?url=' + self.url) > h.endheaders() For ever. In Py<=2.5, httplib.HTTP doesn't have a timeout, so you have to do something like:

Re: What is the timeout value of HTTP

2007-03-29 Thread Alex Martelli
ken <[EMAIL PROTECTED]> wrote: > Can you please tell me what is the timeout value of httplib.HTTP? > > i.e. how long python will wait for a response in the below code? > >h = httplib.HTTP(self.url, 8080) > h.putrequest('GET', '/sample/?url=' + self.url) > h.endheaders() HTTP

What is the timeout value of HTTP

2007-03-29 Thread ken
Can you please tell me what is the timeout value of httplib.HTTP? i.e. how long python will wait for a response in the below code? h = httplib.HTTP(self.url, 8080) h.putrequest('GET', '/sample/?url=' + self.url) h.endheaders() Thank you. -- http://mail.python.org/mailman/lis