<br><br><div class="gmail_quote">2011/1/11 Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On 1/11/2011 6:18 AM, wiz1024 wiz1024 wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<br>
I have a problem on Windows with the module urllib2 with python 2.5<br>
<br>
when i use the "urlopen" function, i have some time the following error :<br>
error<urlopen error (10038, 'Socket operation on non-socket')><br>
<br>
I don't understand why suddenly  this error arrives<br>
The urlopen function is called from a thread<br>
</blockquote>
<br></div></div>
Give us both the failing call and the complete copy-and-pasted traceback.<br>
<br></blockquote><div>the failing call is urlopen<br>I investigate a little and it seams that the problem is cause by the function connect of httplib<br>I have the following traceback with log level debug<br><br>connect: (10.42.1.116, 1111)
<br>connect fail: ('10.42.1.116', 1111)
<br>  File "W:\david\OvdServer\ovd\SMRequestManager.py", line 145, in do_open
<br>    h.request(req.get_method(), req.get_selector(), req.data, headers)
<br>  File "C:\Python25\lib\httplib.py", line 866, in request
<br>    self._send_request(method, url, body, headers)
<br>  File "C:\Python25\lib\httplib.py", line 889, in _send_request
<br>    self.endheaders()
<br>  File "C:\Python25\lib\httplib.py", line 860, in endheaders
<br>    self._send_output()
<br>  File "C:\Python25\lib\httplib.py", line 732, in _send_output
<br>    self.send(msg)
<br>  File "C:\Python25\lib\httplib.py", line 699, in send
<br>    self.connect()
<br>  File "C:\Python25\lib\httplib.py", line 683, in connect
<br>    raise socket.error, msg
<br>(10038, 'Socket operation on non-socket')<br><br><br>best regard.<br>David.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

-- <br>
Terry Jan Reedy<br><font color="#888888">
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>