Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mod_gnutls] use gnutls_record_send_file() if KTLS
use gnutls_record_send_file() if KTLS available For HTTP/1.x responses streaming files from disk, gnutls_record_send_file() (when KTLS is available) might reduce CPU usage and copying between userspace and kernel. Note: KTLS is disabled by default in gnutls global config https://www.gnutls.org/manual/gnutls.html#Enabling-KTLS "When GnuTLS is build with -–enable-ktls configuration, KTLS is disabled by default. This can be enabled by setting ktls = true in [global] section." https://www.gnutls.org/manual/gnutls.html#System_002dwide-configuration-of-the-library "The location of the default configuration file is /etc/gnutls/config, but its actual location may be overridden during compile time or at run-time using the GNUTLS_SYSTEM_PRIORITY_FILE environment variable. The file used can be queried using gnutls_get_system_config_file." (e.g. on Fedora 37: /etc/crypto-policies/back-ends/gnutls.config)
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters