Unverified Commit 968905ab authored by networkException's avatar networkException
Browse files

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 fdfdc5df
see https://github.com/quic-go/quic-go/issues/3923
parent 43935075
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 = {