From 79407ba406275defbaca092a52de116322767418 Mon Sep 17 00:00:00 2001 From: Catherine Date: Tue, 16 Dec 2025 14:41:52 +0000 Subject: [PATCH] Fix timeout bug introduced in commit 9c6f735d. This bug would cause POST hooks triggered for large repositories to silently fail. We need the update context to have the principal (which is tied to the HTTP request), but not the cancellation (which is also tied to the HTTP request and is triggered once the request is done either way). --- src/pages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages.go b/src/pages.go index 2394dce..aea858e 100644 --- a/src/pages.go +++ b/src/pages.go @@ -770,7 +770,7 @@ func postPage(w http.ResponseWriter, r *http.Request) error { result := UpdateFromRepository(ctx, webRoot, repoURL, auth.branch) resultChan <- result observeSiteUpdate("webhook", &result) - }(r.Context()) + }(context.WithoutCancel(r.Context())) var result UpdateResult select {