about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2023-12-13 02:55:50 +0100
committernetworkException <git@nwex.de>2023-12-15 04:43:57 +0100
commit968905ab76aba874bc4818eb3a491b94241aca25 (patch)
treef60fe1b2384991590b130273d75b6ecf91a681dc /nixos/modules
parent439350753ed2e27b0aa4fa1cfdf3ea80ea344644 (diff)
downloadnixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar.gz
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar.bz2
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar.lz
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar.xz
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.tar.zst
nixlib-968905ab76aba874bc4818eb3a491b94241aca25.zip
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')
-rw-r--r--nixos/modules/services/web-servers/caddy/default.nix3
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 = {