Webhook attempts fail with connection_reset when a reused keep-alive connection was closed by the destination
メンテナーはふだん 3 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 67/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go
- 領域
- backend, networking
調査の方向性
Start in the webhook client where Go's http.Transport reuses idle connections and delivery attempts handle connection_reset. Trace how a failed attempt affects logging and the retry budget, then exercise the webhook delivery path with a destination that closes a reused connection. Done means the delivery is retried on a fresh connection without recording a failed attempt or consuming destination retry budget.
索引モデルが issue の本文から書いたものです。
説明
The webhook client keeps idle connections open and reuses them for later deliveries to the same destination (Go's default http.Transport, 90 s idle timeout). This saves a TCP and TLS handshake per delivery.
Sometimes the destination, or a proxy/CDN in front of it, has already closed an idle connection on its side. The next delivery is written to that connection and reset a few milliseconds later, before any response. Go doesn't retry it on a fresh connection, because a POST without an Idempotency-Key header isn't considered safe to replay. Outpost records it as a failed attempt with connection_reset.
For the user this shows up as:
- a failed attempt in the attempt log, though the endpoint is healthy
- delivery delayed by one retry interval
- one retry used from the destination's retry budget
Usually the next scheduled retry opens a new connection and succeeds, so the event is still delivered. If it happens on the last attempt of the retry schedule, Outpost gives up on the event even though the endpoint was healthy.
The error is transient and comes from our connection reuse rather than from the destination, so it shouldn't need to surface as a failed attempt or count against the retry budget.
- 主要言語
- Go
- スター
- 1.1k
- フォーク
- 70
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 34
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hookdeck/outpost のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
hookdeck/outpost#1195 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hookdeck/outpost#1194 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
メンテナーはふだん 3 日以内に返信
hookdeck/outpost の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
WriterSetTimes: the UTIME_NOW check fails when the kernel uses its coarse clock対応中かも @JakeChampion が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JakeChampion/lang#14224 ·
メンテナーはふだん 1 日以内に返信
-
agent-butler-finding bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jordansmall/spindrift#6391 ·
メンテナーはふだん 1 日以内に返信
-
common.Retry: data race on the shared response/err variables when the request context ends mid-attempt (v65.127.0, v65.128.0)対応中かも @kmohit00 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oracle/oci-go-sdk#676 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
SAP/crossplane-provider-btp#1175 ·
メンテナーはふだん 1 日以内に返信