The socket operation could not complete without blocking

Achim Domma domma at
Wed Jun 18 17:28:48 CEST 2003


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\", line 23, in __init__ = urllib2.urlopen(url)
  File "C:\Python23\lib\", line 136, in urlopen
    return, data)
  File "C:\Python23\lib\", line 330, in open
    '_open', req)
  File "C:\Python23\lib\", line 309, in _call_chain
    result = func(*args)
  File "C:\Python23\lib\", line 824, in http_open
    return self.do_open(httplib.HTTP, req)
  File "C:\Python23\lib\", line 813, in do_open
    code, msg, hdrs = h.getreply()
  File "C:\Python23\lib\", line 1019, in getreply
    response = self._conn.getresponse()
  File "C:\Python23\lib\", line 770, in getresponse
  File "C:\Python23\lib\", line 268, in begin
    version, status, reason = self._read_status()
  File "C:\Python23\lib\", line 230, in _read_status
    line = self.fp.readline()
  File "C:\Python23\lib\", 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

Just in case it makes a difference. Can somebody tell me what my problem is?


More information about the Python-list mailing list