Skip to content

Use SSL_sendfile() from OpenSSL 3.0 in SSLSocket.sendfile when available. #99813

@moonsikpark

Description

@moonsikpark

Feature or enhancement

SSL_sendfile() is a function added in OpenSSL 3.0. If we use this function, we can offload TLS to the kernel, which can hugely improve performance. However, both the kernel and OpenSSL must be built with kTLS support.

I would like to prepare a PR that enables SSL_sendfile() use in SSLSocket.sendfile.

Pitch

This would enable use of kernel TLS, which will yield significant increase of TLS performance in systems with kTLS support.

Previous discussion

https://discuss.python.org/t/sslsocket-sendfile-and-kernel-tls/18886

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtopic-SSLtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions