From 316a5c696bef4a842738278fb1a8bc8d8729f1a4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 3 May 2022 19:10:31 -0400 Subject: [PATCH] enable sendfile support again There's a remaining issue fixed in mainline that's not fixed in the current stable branch yet, but it doesn't apply unless HTTP/2 is being used without encryption. Currently sendfile is only really used for the backend proxy connections in practice due to TLS, and those are never HTTP/2. --- nginx/nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 049b8dd..c4748e3 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -16,8 +16,7 @@ http { charset utf-8; charset_types text/css text/plain text/xml application/atom+xml application/javascript; - # sendfile + AIO is buggy without fixes from nginx master - #sendfile on; + sendfile on; sendfile_max_chunk 512k; tcp_nopush on; keepalive_timeout 3m;