QUIC connect_re fails without a callback, and PendingAction would cancel an error sentinel

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

メンテナーはふだん 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 の本文から書いたものです。

説明

Bug Event System Network QUIC

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

環境構築

はじめの一歩

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

apache/trafficserver のほかの issue

apache/trafficserver の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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