This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, r.david.murray
Date 2011-05-12.19:41:13
SpamBayes Score 0.00075619406
Marked as misclassified No
Message-id <1305229274.34.0.642523382123.issue12065@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-05-12 19:41:14pitrousetrecipients: + pitrou, r.david.murray
2011-05-12 19:41:14pitrousetmessageid: <1305229274.34.0.642523382123.issue12065@psf.upfronthosting.co.za>
2011-05-12 19:41:13pitroulinkissue12065 messages
2011-05-12 19:41:13pitroucreate