Small update wrt.SSLError

This commit is contained in:
Antoine Pitrou 2011-05-10 17:23:14 +02:00
parent 96e05b3e65
commit e3ee4ff098
1 changed files with 2 additions and 2 deletions

View File

@ -551,8 +551,8 @@ This PEP also ignores ``SSLError``, which is raised by the ``ssl`` module
in order to propagate errors signalled by the ``OpenSSL`` library. Ideally,
``SSLError`` would benefit from a similar but separate treatment since it
defines its own constants for error types (``ssl.SSL_ERROR_WANT_READ``,
etc.). However, ``SSLError`` should be replaced with ``TimeoutError`` in
the case it signals a socket timeout.
etc.). In Python 3.2, ``SSLError`` is already replaced with ``socket.timeout``
when it signals a socket timeout (see `issue 10272 <http://bugs.python.org/issue10272>`_).
Endly, the fate of ``socket.gaierror`` and ``socket.herror`` is not settled.
While they would deserve less cryptic names, this can be handled separately