Webhook attempts fail with connection_reset when a reused keep-alive connection was closed by the destination

オープン
#1,150 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@Wali05 がすでに取り組んでいます。

2026年10月29日 から。

  • #1184 @Wali05 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hookdeck/outpost のほかの issue

hookdeck/outpost の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。