Skip to content

Commit 968905a

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 fdfdc5d see quic-go/quic-go#3923
1 parent 4393507 commit 968905a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/services/web-servers/caddy/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,9 @@ in
342342
}
343343
'';
344344

345-
# https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size
345+
# https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes
346346
boot.kernel.sysctl."net.core.rmem_max" = mkDefault 2500000;
347+
boot.kernel.sysctl."net.core.wmem_max" = mkDefault 2500000;
347348

348349
systemd.packages = [ cfg.package ];
349350
systemd.services.caddy = {

0 commit comments

Comments
 (0)