unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ashish SHUKLA" via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 73121@debbugs.gnu.org
Subject: bug#73121: guix publish service never closes the connection
Date: Sun, 08 Sep 2024 19:10:19 +0530	[thread overview]
Message-ID: <D40Y1ICBQ240.W983QW1JVOF9@lostca.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 2053 bytes --]

Hi,

When using a guix publish server (sans any nginx (or reverse proxy) front-end) as substitute server, it seems guix publish never closes the connection on certain URLs:

===============================================================
% curl -H 'User-Agent: GNU Guile' -v http://localhost:7888/nar/w0b5xvxg0phkm9gw5xcig0sb2ggcc053-git-2.46.0.tar.xz -o /dev/null
* Host localhost:7888 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying [::1]:7888...
* connect to ::1 port 7888 from ::1 port 49630 failed: Connection refused
*   Trying 127.0.0.1:7888...
* Connected to localhost (127.0.0.1) port 7888
> GET /nar/w0b5xvxg0phkm9gw5xcig0sb2ggcc053-git-2.46.0.tar.xz HTTP/1.1
> Host: localhost:7888
> Accept: */*
> User-Agent: GNU Guile
>
< HTTP/1.1 200 OK
< Content-Type: application/x-nix-archive;charset=ISO-8859-1
* no chunk, no close, no size. Assume close to signal end
<
{ [24 bytes data]
100 7399k    0 7399k    0     0  1026k      0 --:--:--  0:00:07 --:--:--     0
100 7399k    0 7399k    0     0   803k      0 --:--:--  0:00:09 --:--:--     0^CException: curl killed by signal interrupt
  [tty 24]:1:1-124: curl -H 'User-Agent: GNU Guile' -v http://localhost:7888/nar/w0b5xvxg0phkm9gw5xcig0sb2ggcc053-git-2.46.0.tar.xz -o /dev/null
===============================================================

guix-publish daemon is running with following configuration:

===============================================================
(service guix-publish-service-type
    (guix-publish-configuration
       (port 7888)
       (host "127.0.0.1")
       (advertise? #f)))
===============================================================

To workaround this problem in reverse proxy, either HTTP/1.0 or disable
keepalive setting in reverse proxy.

Thanks!
--
Ashish SHUKLA

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 992 bytes --]

                 reply	other threads:[~2024-09-08 13:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=D40Y1ICBQ240.W983QW1JVOF9@lostca.se \
    --to=bug-guix@gnu.org \
    --cc=73121@debbugs.gnu.org \
    --cc=ashish.is@lostca.se \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).