[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4

victor.stinner python-checkins at python.org
Fri Oct 10 13:05:58 CEST 2014


https://hg.python.org/cpython/rev/43719dd56658
changeset:   92919:43719dd56658
parent:      92917:7b53873a2d7c
parent:      92918:61fbd3d5c307
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Oct 10 12:47:01 2014 +0200
summary:
  Merge 3.4

files:
  Doc/library/ssl.rst |  12 ++++++++++--
  1 files changed, 10 insertions(+), 2 deletions(-)


diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -816,7 +816,7 @@
    instead, and return the number of bytes read.
 
    Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is
-   non-blocking and the read would block.
+   :ref:`non-blocking <ssl-nonblocking>` and the read would block.
 
    As at any time a re-negotiation is possible, a call to :meth:`read` can also
    cause write operations.
@@ -827,7 +827,7 @@
    *buf* argument must be an object supporting the buffer interface.
 
    Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is
-   non-blocking and the write would block.
+   :ref:`non-blocking <ssl-nonblocking>` and the write would block.
 
    As at any time a re-negotiation is possible, a call to :meth:`write` can
    also cause read operations.
@@ -1729,6 +1729,14 @@
         except ssl.SSLWantWriteError:
             select.select([], [sock], [])
 
+.. seealso::
+
+   The :mod:`asyncio` module supports non-blocking SSL sockets and provides a
+   higher level API. It polls for events using the :mod:`selectors` module and
+   handles :exc:`SSLWantWriteError`, :exc:`SSLWantReadError` and
+   :exc:`BlockingIOError` exceptions. It runs the SSL handshake asynchronously
+   as well.
+
 
 Memory BIO Support
 ------------------

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list