[issue13559] Use sendfile where possible in httplib

Martin Panter report at bugs.python.org
Fri Sep 11 04:13:11 CEST 2015


Martin Panter added the comment:

The multiple personalities of HTTPConnection.send() and friends is a bit of a can of worms. I suggest working on Issue 23740 to get an idea of what kinds of file objects are meant to be supported, and what things may work by accident and be used in the real world.

For instance, is it possible to manually set Content-Length, and say supply a GzipFile reader, or file object positioned halfway through the file? How does this interact with the socket.sendfile() call?

----------
dependencies: +http.client request and send method have some datatype issues
nosy: +martin.panter
stage: needs patch -> patch review

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


More information about the Python-bugs-list mailing list