On 27 jul, 11:00, dirknbr wrote:
> I am running urllib2.request and get this response when I do the read.
> Any ideas what causes this?
>
> return response.read()
> File "C:\Python26\lib\socket.py", line 329, in read
> data = self._sock.recv(rbufsize)
> File "C:\Python26\lib\httplib.py",
import socket
# timeout in seconds
timeout = 10
socket.setdefaulttimeout(timeout)
On Tue, Jul 27, 2010 at 10:09 PM, Dirk Nachbar wrote:
> Thanks, I don't think it's redirecting, how can I increase the timeout?
>
>
> On 27 July 2010 16:56, Nitin Pawar wrote:
>
>> Hi,
>>
>> Check if the webpage
Thanks, I don't think it's redirecting, how can I increase the timeout?
On 27 July 2010 16:56, Nitin Pawar wrote:
> Hi,
>
> Check if the webpage you are trying to access is redirecting the page to
> some other page?
> or the timeout is too less for the request to finish
>
>
> Thanks,
> Nitin
>
>
Hi,
Check if the webpage you are trying to access is redirecting the page to
some other page?
or the timeout is too less for the request to finish
Thanks,
Nitin
On Tue, Jul 27, 2010 at 7:30 PM, dirknbr wrote:
> I am running urllib2.request and get this response when I do the read.
> Any ideas
I am running urllib2.request and get this response when I do the read.
Any ideas what causes this?
return response.read()
File "C:\Python26\lib\socket.py", line 329, in read
data = self._sock.recv(rbufsize)
File "C:\Python26\lib\httplib.py", line 518, in read
return self._read_chunked(