[issue17552] Add a new socket.sendfile() method

Giampaolo Rodola' report at bugs.python.org
Sat Jun 7 12:22:11 CEST 2014


Giampaolo Rodola' added the comment:

Looking back at this I think a "send_blocksize" argument is necessary after all. shutil.copyfileobj() has it, so is ftplib.FTP.storbinary() and  httplib (issue 13559) which will both be using socket.sendfile() once it gets included.
Updated patch is in attachment. If there are no other objections I'd be for committing this next week or something as I'm pretty confident with the current implementation.

----------
Added file: http://bugs.python.org/file35507/socket-sendfile7.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17552>
_______________________________________


More information about the Python-bugs-list mailing list