From: Mathieu Othacehe <othacehe@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 48468@debbugs.gnu.org
Subject: bug#48468: substitute server connection timeout
Date: Tue, 27 Dec 2022 10:52:51 +0100 [thread overview]
Message-ID: <87sfh1mavg.fsf@gnu.org> (raw)
In-Reply-To: <87fsdn5xzb.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sat, 10 Dec 2022 11:55:52 +0100")
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
Hey Ludo,
> That’s still below the 100 MiB cache bypass threshold of the main ‘guix
> publish’ instance though.
Right. Just to be on the safe side here, what about applying this patch
to have log lines when we are replying 404 due to baking?
Thanks,
Mathieu
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-scripts-publish-Add-a-log-when-replying-404-due-to-b.patch --]
[-- Type: text/x-patch, Size: 1412 bytes --]
From 725d5ba21a0fc0108b60c37bbc8d947fab6ac938 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe@gnu.org>
Date: Tue, 27 Dec 2022 10:49:04 +0100
Subject: [PATCH 1/1] scripts: publish: Add a log when replying 404 due to
baking.
* guix/scripts/publish.scm (render-narinfo/cached): Add it.
---
guix/scripts/publish.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm
index 3bf3bd9c7c..a2048c98fd 100644
--- a/guix/scripts/publish.scm
+++ b/guix/scripts/publish.scm
@@ -586,9 +586,13 @@ (define (delete-entry narinfo)
#:ttl 300 ;temporary
#:nar-path nar-path
#:compressions compressions)
- (not-found request
- #:phrase "We're baking it"
- #:ttl 300))) ;should be available within 5m
+ (begin
+ (format #t (G_ "~a ~a: 404 (baking)~%")
+ (request-method request)
+ (uri-path (request-uri request)))
+ (not-found request
+ #:phrase "We're baking it"
+ #:ttl 300)))) ;should be available within 5m
(else
(not-found request #:phrase "" #:ttl negative-ttl)))))
--
2.38.1
next prev parent reply other threads:[~2022-12-27 9:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-16 17:57 bug#48468: substitute server connection timeout Mathieu Othacehe
2021-05-16 18:26 ` Christopher Baines
2021-05-17 14:49 ` Mathieu Othacehe
2021-05-18 14:35 ` Mathieu Othacehe
2021-05-21 13:30 ` Mathieu Othacehe
2021-05-29 21:44 ` Ludovic Courtès
2021-06-18 12:33 ` Ludovic Courtès
2021-06-29 16:49 ` Mathieu Othacehe
2022-12-05 13:21 ` Ludovic Courtès
2022-12-07 9:44 ` Mathieu Othacehe
2022-12-07 13:38 ` Ludovic Courtès
2022-12-07 14:31 ` Mathieu Othacehe
2022-12-08 10:26 ` Ludovic Courtès
2022-12-10 10:55 ` Ludovic Courtès
2022-12-27 9:52 ` Mathieu Othacehe [this message]
2022-12-28 14:23 ` Mathieu Othacehe
2023-01-06 22:42 ` Ludovic Courtès
2023-01-07 13:40 ` Mathieu Othacehe
2023-01-09 9:39 ` Ludovic Courtès
2023-01-10 8:10 ` 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=87sfh1mavg.fsf@gnu.org \
--to=othacehe@gnu.org \
--cc=48468@debbugs.gnu.org \
--cc=ludo@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.