all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: 48556@debbugs.gnu.org
Cc: Mathieu Othacehe <othacehe@gnu.org>
Subject: [bug#48556] [PATCH 0/4] Add keep-alive support to guix publish.
Date: Fri, 21 May 2021 10:23:58 +0200	[thread overview]
Message-ID: <20210521082358.19929-1-othacehe@gnu.org> (raw)

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	other threads:[~2021-05-21  8:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21  8:23 Mathieu Othacehe [this message]
2021-05-21  8:32 ` [bug#48556] [PATCH 1/4] scripts: publish: Add keep-alive support when sending NAR Mathieu Othacehe
2021-05-21  8:32   ` [bug#48556] [PATCH 2/4] scripts: publish: Forward the request connection header Mathieu Othacehe
2021-05-29 15:32     ` [bug#48556] [PATCH 0/4] Add keep-alive support to guix publish Ludovic Courtès
2021-05-21  8:32   ` [bug#48556] [PATCH 3/4] progress: Add a download-size argument to progress-report-port Mathieu Othacehe
2021-05-29 15:33     ` [bug#48556] [PATCH 0/4] Add keep-alive support to guix publish Ludovic Courtès
2021-05-21  8:32   ` [bug#48556] [PATCH 4/4] scripts: substitute: Add keep-alive support when reading NAR Mathieu Othacehe
2021-05-29 15:34     ` [bug#48556] [PATCH 0/4] Add keep-alive support to guix publish Ludovic Courtès
2021-05-29 15:29   ` Ludovic Courtès
2021-06-01  7:14     ` bug#48556: " Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210521082358.19929-1-othacehe@gnu.org \
    --to=othacehe@gnu.org \
    --cc=48556@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.