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 fdfdc5df21
see https://github.com/quic-go/quic-go/issues/3923
This commit is contained in:
networkException 2023-12-13 02:55:50 +01:00
parent 439350753e
commit 968905ab76
No known key found for this signature in database
GPG Key ID: E3877443AE684391

View File

@ -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.rmem_max" = mkDefault 2500000;
boot.kernel.sysctl."net.core.wmem_max" = mkDefault 2500000;
systemd.packages = [ cfg.package ]; systemd.packages = [ cfg.package ];
systemd.services.caddy = { systemd.services.caddy = {