The socket operation could not complete without blocking
Achim Domma
domma at procoders.net
Wed Jun 18 11:28:48 EDT 2003
Hi,
calling urllib2.urlopen (python2.3) I randomly the error message:
"The socket operation could not complete without blocking"
Here is the traceback:
File "C:\crawler\Rules\Tools\__init__.py", line 23, in __init__
self.page = urllib2.urlopen(url)
File "C:\Python23\lib\urllib2.py", line 136, in urlopen
return _opener.open(url, data)
File "C:\Python23\lib\urllib2.py", line 330, in open
'_open', req)
File "C:\Python23\lib\urllib2.py", line 309, in _call_chain
result = func(*args)
File "C:\Python23\lib\urllib2.py", line 824, in http_open
return self.do_open(httplib.HTTP, req)
File "C:\Python23\lib\urllib2.py", line 813, in do_open
code, msg, hdrs = h.getreply()
File "C:\Python23\lib\httplib.py", line 1019, in getreply
response = self._conn.getresponse()
File "C:\Python23\lib\httplib.py", line 770, in getresponse
response.begin()
File "C:\Python23\lib\httplib.py", line 268, in begin
version, status, reason = self._read_status()
File "C:\Python23\lib\httplib.py", line 230, in _read_status
line = self.fp.readline()
File "C:\Python23\lib\socket.py", line 310, in readline
data = recv(1)
error: (10035, 'The socket operation could not complete without blocking')
I have change the sockettimeout like this:
import socket
socket.setdefaulttimeout(10)
Just in case it makes a difference. Can somebody tell me what my problem is?
Achim
More information about the Python-list
mailing list