summaryrefslogtreecommitdiffstats
path: root/Doc/library/ssl.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-04-19 04:55:30 (GMT)
committerGitHub <noreply@github.com>2021-04-19 04:55:30 (GMT)
commit89d1550d14ba689af12eeb726e4ff8ce73cee7e1 (patch)
treeb74447b5ef927594da10942376ec905b09b03d29 /Doc/library/ssl.rst
parent49fdf118aeda891401d638ac32296c7d55d54678 (diff)
downloadcpython-89d1550d14ba689af12eeb726e4ff8ce73cee7e1.zip
cpython-89d1550d14ba689af12eeb726e4ff8ce73cee7e1.tar.gz
cpython-89d1550d14ba689af12eeb726e4ff8ce73cee7e1.tar.bz2
bpo-42854: Use SSL_read/write_ex() (GH-25468)
The ssl module now uses ``SSL_read_ex`` and ``SSL_write_ex`` internally. The functions support reading and writing of data larger than 2 GB. Writing zero-length data no longer fails with a protocol violation error. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r--Doc/library/ssl.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 9d5e063..8bac365 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -1122,6 +1122,11 @@ SSL Sockets
to create instances directly. This was never documented or officially
supported.
+ .. versionchanged:: 3.10
+ Python now uses ``SSL_read_ex`` and ``SSL_write_ex`` internally. The
+ functions support reading and writing of data larger than 2 GB. Writing
+ zero-length data no longer fails with a protocol violation error.
+
SSL sockets also have the following additional methods and attributes:
.. method:: SSLSocket.read(len=1024, buffer=None)