Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
cfb2a0a8
Commit
cfb2a0a8
authored
10 years ago
by
Victor Stinner
Browse files
Options
Download
Email Patches
Plain Diff
Issue #22564: ssl doc: mention asyncio in the non-blocking section
parent
d28fe8c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Doc/library/ssl.rst
Doc/library/ssl.rst
+10
-2
No files found.
Doc/library/ssl.rst
View file @
cfb2a0a8
...
...
@@ -794,7 +794,7 @@ SSL sockets also have the following additional methods and attributes:
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.
...
...
@@ -805,7 +805,7 @@ SSL sockets also have the following additional methods and attributes:
*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.
...
...
@@ -1691,6 +1691,14 @@ thus several things you need to be aware of:
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.
.. _ssl-security:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment