diff options
author | networkException <git@nwex.de> | 2023-12-13 02:55:50 +0100 |
---|---|---|
committer | networkException <git@nwex.de> | 2023-12-15 04:43:57 +0100 |
commit | 968905ab76aba874bc4818eb3a491b94241aca25 (patch) | |
tree | f60fe1b2384991590b130273d75b6ecf91a681dc /nixos/modules/services/web-servers | |
parent | 439350753ed2e27b0aa4fa1cfdf3ea80ea344644 (diff) |
nixos/caddy: also increase socket send buffer size as recommended by upstream
this patch adjusts the `boot.kernel.sysctl."net.core.wmem_max"` to match the
value suggested in the quic-go wiki, just as `"net.core.wmem_max"`.
see fdfdc5df21d3df985b751bc61929e2305882dd48
see https://github.com/quic-go/quic-go/issues/3923
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/caddy/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/caddy/default.nix b/nixos/modules/services/web-servers/caddy/default.nix index 9a544e98cfc4..95dc219d108c 100644 --- a/nixos/modules/services/web-servers/caddy/default.nix +++ b/nixos/modules/services/web-servers/caddy/default.nix @@ -342,8 +342,9 @@ in } ''; - # https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size + # https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes boot.kernel.sysctl."net.core.rmem_max" = mkDefault 2500000; + boot.kernel.sysctl."net.core.wmem_max" = mkDefault 2500000; systemd.packages = [ cfg.package ]; systemd.services.caddy = { |