From d474408615dcf928c9551bed64297ce69e5d22ec Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 25 Apr 2024 11:22:40 -0400 Subject: [PATCH] use minimal TCP buffer sizes for non-TLS HTTP --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 87af805a..59a32a2e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -112,8 +112,8 @@ http { } server { - listen 80 default_server backlog=4096; - listen [::]:80 default_server backlog=4096; + listen 80 default_server backlog=4096 rcvbuf=2048 sndbuf=2048; + listen [::]:80 default_server backlog=4096 rcvbuf=2048 sndbuf=2048; # https://trac.nginx.org/nginx/ticket/2012 location / {