[issue12500] support.transient_internet(): catch also Windows socket errors

Antoine Pitrou report at bugs.python.org
Tue Jul 5 13:23:39 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

You don't need to add WSAECONNREFUSED, it's already there as ECONNREFUSED:

>>> errno.ECONNREFUSED
10061
>>> errno.WSAECONNREFUSED
10061

As for (WSA)ENOTCONN, I don't want to add it before knowing what happens. It may signal a programming error.

----------

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


More information about the Python-bugs-list mailing list