"socket operation on non socket" on Windows

wiz1024 wiz1024 wiz1024 at gmail.com
Tue Jan 11 12:16:31 EST 2011


2011/1/11 Terry Reedy <tjreedy at udel.edu>

> On 1/11/2011 6:18 AM, wiz1024 wiz1024 wrote:
>
>> Hi
>>
>> I have a problem on Windows with the module urllib2 with python 2.5
>>
>> when i use the "urlopen" function, i have some time the following error :
>> error<urlopen error (10038, 'Socket operation on non-socket')>
>>
>> I don't understand why suddenly  this error arrives
>> The urlopen function is called from a thread
>>
>
> Give us both the failing call and the complete copy-and-pasted traceback.
>
> the failing call is urlopen
I investigate a little and it seams that the problem is cause by the
function connect of httplib
I have the following traceback with log level debug

connect: (10.42.1.116, 1111)
connect fail: ('10.42.1.116', 1111)
  File "W:\david\OvdServer\ovd\SMRequestManager.py", line 145, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "C:\Python25\lib\httplib.py", line 866, in request
    self._send_request(method, url, body, headers)
  File "C:\Python25\lib\httplib.py", line 889, in _send_request
    self.endheaders()
  File "C:\Python25\lib\httplib.py", line 860, in endheaders
    self._send_output()
  File "C:\Python25\lib\httplib.py", line 732, in _send_output
    self.send(msg)
  File "C:\Python25\lib\httplib.py", line 699, in send
    self.connect()
  File "C:\Python25\lib\httplib.py", line 683, in connect
    raise socket.error, msg
(10038, 'Socket operation on non-socket')


best regard.
David.


> --
> Terry Jan Reedy
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110111/57e9a0c9/attachment-0001.html>


More information about the Python-list mailing list