QUIC connect_re fails without a callback, and PendingAction would cancel an error sentinel
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
- 領域
- networking
調査の方向性
Read the documented NetProcessor::connect_re failure behavior in include/iocore/net/NetProcessor.h, then trace the failure paths in src/iocore/net/QUICNetProcessor.cc and src/iocore/net/UnixUDPNet.cc. Also inspect PendingAction.h and the OpenSSL QUIC connect_re path to understand how ACTION_IO_ERROR is handled. Done means every QUIC connect_re failure reports NET_EVENT_OPEN_FAILED and PendingAction safely handles both sentinel results; the issue names no tests to run.
索引モデルが issue の本文から書いたものです。
説明
NetProcessor::connect_re documents that a failure is reported with NET_EVENT_OPEN_FAILED (NetProcessor.h#L105-L107). The quiche QUICNetProcessor::connect_re returns early when CreateUDPSocket fails, without calling the continuation back (QUICNetProcessor.cc#L166-L170). On a soft error such as a bind failure, CreateUDPSocket sets status to nullptr (UnixUDPNet.cc#L806-L813). The caller then gets nullptr and no event at all, so a caller that waits for the callback hangs. On a hard error it gets ACTION_IO_ERROR, again with no callback. The only in-tree caller (traffic_quic) copes because it treats any result other than ACTION_RESULT_DONE as a failure and tries the next address.
A related latent problem: nothing in the tree ever compares a result against ACTION_IO_ERROR. PendingAction::operator= treats every result except ACTION_RESULT_DONE as a real Action and later calls cancel() on it (PendingAction.h#L99-L111, #L130-L134). Storing ACTION_IO_ERROR (from UDPBind, CreateUDPSocket, or the OpenSSL QUIC connect_re at OpenSSLQUICNetProcessor.cc#L94) in a PendingAction would dereference the sentinel. No caller does that today.
Suggested: have QUIC connect_re deliver NET_EVENT_OPEN_FAILED on every failure, and make PendingAction skip ACTION_IO_ERROR as well as ACTION_RESULT_DONE.
generated with Claude Opus 5.5 by Josiah VanderZee
- 主要言語
- C++
- スター
- 2k
- フォーク
- 903
- 平均マージ
- 4日 4時間
- マージ済み PR(30日)
- 135
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/trafficserver のほかの issue
-
UnixNetVConnection::do_io_write with a null reader leaves the previous reader in the write VIO対応中かも @NginxL が今日担当しました。 オープンBug Good First Issue IOBuffer Network
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/trafficserver#14220 ·
メンテナーはふだん 2 日以内に返信
-
MallocAllocator does not check for allocation failure対応中かも @umrndem が今日担当しました。 オープンBug Core Good First Issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/trafficserver#14218 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
Bug Event System Threads
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/trafficserver#14217 ·
メンテナーはふだん 2 日以内に返信
-
TSContScheduleEveryOnPool and TSContScheduleEveryOnThread accept a zero or negative period対応中かも @rajeetvk が 1 日前に担当しました。 オープンBug Event System Good First Issue TS API
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/trafficserver#14214 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
HostDBContinuation::init memsets a polymorphic Action対応中かも @ANMOLSCRIPT が今日担当しました。 オープンBug Good First Issue HostDB
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/trafficserver#14204 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
apache/trafficserver の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 2 日以内に返信
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-cpp#645 ·
メンテナーはふだん 1 日以内に返信
-
bug compatibility difficulty:easy prio:normal
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
NatronGitHub/openfx-misc#524 ·
メンテナーはふだん 1 日以内に返信
-
documentation enhancement help wanted P0
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openscad/openscad#7360 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信