guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: nginx: mirror: Use HTTP 1.1 to talk to the backend.


From: Ludovic Courtès
Subject: 01/01: nginx: mirror: Use HTTP 1.1 to talk to the backend.
Date: Tue, 22 Mar 2016 14:27:57 +0000

civodul pushed a commit to branch master
in repository maintenance.

commit ea01e13f185b6e02c795b3c162c9a551162e4c9d
Author: Ludovic Courtès <address@hidden>
Date:   Tue Mar 22 15:27:26 2016 +0100

    nginx: mirror: Use HTTP 1.1 to talk to the backend.
---
 hydra/nginx/mirror.conf |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/hydra/nginx/mirror.conf b/hydra/nginx/mirror.conf
index d9ad4fb..a19a2e9 100644
--- a/hydra/nginx/mirror.conf
+++ b/hydra/nginx/mirror.conf
@@ -33,6 +33,11 @@ http {
 
     keepalive_timeout  65;
 
+    # Use HTTP 1.1 to talk to the backend so we benefit from
+    # keep-alive connections and chunked transfer encoding.  The
+    # latter allows us to make sure we do not cache partial downloads.
+    proxy_http_version 1.1;
+
     # The 'inactive' parameter for caching is not very useful in our
     # case: all that matters is that LRU sweeping happens when
     # 'max_size' is hit.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]