fix: notification sends started by domain and proxy host events use the request context
Maintainer antworten meist innerhalb von 1 Tag
@Wikid82 arbeitet bereits daran.
Seit 01.12.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
What
SendExternal is called with c.Request.Context() from handlers and then starts one goroutine per provider. Go cancels the request context when the handler returns, so a send that has not finished by then can fail with a cancelled-context error. Test sends use context.Background() and succeed.
Where
backend/internal/api/handlers/domain_handler.go(lines 54 and 74)backend/internal/api/handlers/proxy_host_handler.go(lines 598 and 905)backend/internal/services/notification_service.go(SendExternal, around line 214 onward)
Evidence
During container checks, Gotify sends triggered by creating a domain or proxy host failed with "outbound request failed: connection failed", while a test send a moment later succeeded. The call sites and the dispatch code are the same on development. The exact mapping from a cancelled context to that message was not confirmed.
Severity
Medium-low (event notifications may be dropped, intermittently).
Suggested approach
Pass a context detached from the request (for example context.WithoutCancel(ctx) with a timeout) into the goroutines, and add a test that returns from the handler before the sender completes.
- Vorherrschende Sprache
- Go
- Sterne
- 17
- Forks
- 2
- Ø Merge
- 1 Std. 42 Min.
- Gemergte PRs (30 T.)
- 173
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Wikid82/Charon
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Docs promise signed SLSA provenance that the image build does not produceEvtl. vergeben @Wikid82 hat das heute übernommen. Offenarchitecture documentation security ui
Wikid82/Charon#2152 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Orthrus agent images are not signed or SBOM-attestedEvtl. vergeben @Wikid82 hat das heute übernommen. Offensecurity ssl testing
Wikid82/Charon#2151 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 daysEvtl. vergeben @Wikid82 hat das heute übernommen. Offencritical testing
Wikid82/Charon#2150 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Minor follow-ups from the country-allow-list local-network reviewEvtl. vergeben @Wikid82 hat das heute übernommen. Offenarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
agent:ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
turbot/flowpipe#1162 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsEvtl. vergeben @weirong-ui hat das heute übernommen. Offenkind/bug needs-priority needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
kubernetes-sigs/karpenter#3728 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
compaction: redundant exclusion checks after inRangeEvtl. vergeben @moodbased hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag