guix-patches
[Top][All Lists]
Advanced

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

[bug#48556] [PATCH 0/4] Add keep-alive support to guix publish.


From: Mathieu Othacehe
Subject: [bug#48556] [PATCH 0/4] Add keep-alive support to guix publish.
Date: Fri, 21 May 2021 10:23:58 +0200

Hello,

The default Guile web server implementation supports the keep alive
mechanism. However, in our custom http-write implementation, the connection
is unconditionally close after sending NAR files.

When the publish server is sitting behind an Nginx server, like on the Berlin
build farm, Nginx is taking care of keeping the client connections
alive. However, the keep alive mechanism is not supported between Nginx and
guix publish.

Likewise, when running an independant publish server, the connection will be
closed by the publish server each time a NAR file is sent.

To prevent that, extend the keep alive mechanism support to the publish server
when sending NAR files and to the substitute script when receiving them.

Thanks,

Mathieu

Mathieu Othacehe (4):
  scripts: publish: Add keep-alive support when sending NAR.
  scripts: publish: Forward the request connection header.
  progress: Add a download-size argument to progress-report-port.
  scripts: substitute: Add keep-alive support when reading NAR.

 guix/progress.scm           |  16 +++-
 guix/scripts/publish.scm    | 171 +++++++++++++++++++++++++-----------
 guix/scripts/substitute.scm |   7 +-
 3 files changed, 139 insertions(+), 55 deletions(-)

-- 
2.31.1






reply via email to

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