[issue13559] Use sendfile where possible in httplib

Christian Heimes report at bugs.python.org
Tue Mar 9 05:40:33 EST 2021


Christian Heimes <lists at cheimes.de> added the comment:

sendfile() only works for plain HTTP. For technical reasons it does not work for HTTPS (*). These days majority of services use HTTPS. Therefore the usefulness of sendfile() patch is minimal.

(*) It is possible to use sendfile() for TLS connections, but the feature requires a Kernel module that provides kTLS offloading feature, https://www.kernel.org/doc/html/latest/networking/tls-offload.html . In user space it requires OpenSSL 3.0.0 with kTLS support. 3.0.0 is currently under development.

----------
nosy: +christian.heimes
versions: +Python 3.10 -Python 3.5

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


More information about the Python-bugs-list mailing list