Antoine Pitrou <pit...@free.fr> added the comment: Which probably means it was a socket.timeout. When called on a non-SSL socket, connect_ex() returns 11 (EAGAIN) for timeout errors:
>>> s = socket.socket() >>> s.settimeout(0.00001) >>> s.connect_ex(("svn.python.org", 443)) 11 But on SSL sockets, connect_ex() loses the errno (because it calls connect() on the underlying socket, not connect_ex(), and socket.timeout isn't raised with an errno): >>> s = ssl.wrap_socket(socket.socket()) >>> s.settimeout(0.00001) >>> print(s.connect_ex(("svn.python.org", 443))) None ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12065> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com