fix: notification sends started by domain and proxy host events use the request context
メンテナーはふだん 1 日以内に返信
@Wikid82 がすでに取り組んでいます。
2026年12月1日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Go
- スター
- 17
- フォーク
- 2
- 平均マージ
- 1時間 42分
- マージ済み PR(30日)
- 173
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Wikid82/Charon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Docs promise signed SLSA provenance that the image build does not produce対応中かも @Wikid82 が今日担当しました。 オープンarchitecture documentation security ui
Wikid82/Charon#2152 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Orthrus agent images are not signed or SBOM-attested対応中かも @Wikid82 が今日担当しました。 オープンsecurity ssl testing
Wikid82/Charon#2151 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 days対応中かも @Wikid82 が今日担当しました。 オープンcritical testing
Wikid82/Charon#2150 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Minor follow-ups from the country-allow-list local-network review対応中かも @Wikid82 が今日担当しました。 オープンarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
agent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
turbot/flowpipe#1162 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costs対応中かも @weirong-ui が今日担当しました。 オープンkind/bug needs-priority needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kubernetes-sigs/karpenter#3728 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
compaction: redundant exclusion checks after inRange対応中かも @moodbased が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/mcp-registry#8199 ·
メンテナーはふだん 2 日以内に返信