Paul Wiseman added the comment:
Ah ok, thanks for clearing that up. I thought there'd have been a socket.error
with ETIMEDOUT raised as the underlying exception, similar to if it times out
during the non-ssl part of the request
--
___
Python tracker
Antoine Pitrou added the comment:
The issue you mention is unrelated. connect_ex() returns an error code, it
doesn't raise an exception.
As for the errno attribute being None, this is because most SSLErrors don't
correspond to a single OS error. And in the case you mention ("the read
operatio
New submission from Paul Wiseman:
I was using py2.7.3 and was getting None back for the errno attribute for an
ssl.SSLError('The read operation timed out').
I noticed in the 2.7.4 release notes that it sounds like there was a fix for
this:
Issue #12065: connect_ex() on an SSL socket now retur