[issue17664] ssl.SSLError has errno value of None

Antoine Pitrou report at bugs.python.org
Mon Apr 8 20:10:10 CEST 2013


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 operation timed out"), it isn't an OS error at all: it's simply a select() call timing out.

----------
nosy: +pitrou
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list