[issue15779] socket error [Errno 10013] when creating SMTP object

James Hutchison report at bugs.python.org
Fri Aug 24 22:36:17 CEST 2012


James Hutchison added the comment:

That makes no sense. Why does:

s = socket.socket()
s.bind(('',50007))
s.listen(1);
s.close();

fix the issue then?

Re-opening, this issue should be understood because having such an operation randomly fail is unacceptable for a production system. How does python choose a port to open a connection on? If windows reports the wrong error then shouldn't python try a different port number anyways (considering I have no control over what port Python chooses to open a connection on)?

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15779>
_______________________________________


More information about the Python-bugs-list mailing list