summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-06-11 01:54:30 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-06-11 01:54:30 (GMT)
commit915d14190ee07b66e29b385943a942a51c825ae6 (patch)
treec822a64395af65a3f22f02aa5b87bd39c37a10b4 /Doc/whatsnew
parentb398d33c65636aed68246179a4f6ae4b3fbcf182 (diff)
downloadcpython-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/whatsnew')
-rw-r--r--Doc/whatsnew/3.5.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 5c4e0b5..af734c8 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -181,9 +181,18 @@ signal
* Different constants of :mod:`signal` module are now enumeration values using
the :mod:`enum` module. This allows meaningful names to be printed during
- debugging, instead of integer “magic numbers”. (contribute by Giampaolo
+ debugging, instead of integer “magic numbers”. (contributed by Giampaolo
Rodola' in :issue:`21076`)
+socket
+------
+
+* New :meth:`socket.socket.sendfile` method allows to send a file over a socket
+ by using high-performance :func:`os.sendfile` function on UNIX resulting in
+ uploads being from 2x to 3x faster than when using plain
+ :meth:`socket.socket.send`.
+ (contributed by Giampaolo Rodola' in :issue:`17552`)
+
xmlrpc
------