diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-06-11 01:54:30 (GMT) |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-06-11 01:54:30 (GMT) |
commit | 915d14190ee07b66e29b385943a942a51c825ae6 (patch) | |
tree | c822a64395af65a3f22f02aa5b87bd39c37a10b4 /Doc/library/ssl.rst | |
parent | b398d33c65636aed68246179a4f6ae4b3fbcf182 (diff) | |
download | cpython-915d14190ee07b66e29b385943a942a51c825ae6.zip cpython-915d14190ee07b66e29b385943a942a51c825ae6.tar.gz cpython-915d14190ee07b66e29b385943a942a51c825ae6.tar.bz2 |
fix issue #17552: add socket.sendfile() method allowing to send a file over a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'ยท
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r-- | Doc/library/ssl.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 0b0edd8..6eb47e3 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -789,6 +789,9 @@ SSL sockets provide the following methods of :ref:`socket-objects`: (but passing a non-zero ``flags`` argument is not allowed) - :meth:`~socket.socket.send()`, :meth:`~socket.socket.sendall()` (with the same limitation) +- :meth:`~socket.socket.sendfile()` (but :mod:`os.sendfile` will be used + for plain-text sockets only, else :meth:`~socket.socket.send()` will be used) + .. versionadded:: 3.5 - :meth:`~socket.socket.shutdown()` However, since the SSL (and TLS) protocol has its own framing atop |