resume: a route switch after a header-only payload stall never recovers, and hands a held group out past its max age
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- backend, networking
調査の方向性
Start with rs/moq-net/tests/integration/route_health.rs, especially the payload_stall reproduction and a_standby_recovers_a_payload_stall_within_its_budget from linked PR #10314. Compare the Stall::Headers behavior with the Upstream and Downstream cases, then trace how resume chooses the switch boundary and handles held groups. Done when the reader recovers after a clean switch and held groups past the 2 s max age are cut as Old.
索引モデルが issue の本文から書いたものです。
説明
Problem
When the serving copy holds group headers whose frames never arrive (a header-only payload stall), resume mishandles the next route switch:
- A clean switch never recovers the reader. After a header-only stall on
M1 -> E, closing that session cleanly leavesEreading nothing for the rest of the run. One group fails asOld, and the subscription neither ends nor resumes on the healthy routeM2. The same close after an Upstream or Downstream stall (no headers held) recovers. - A held group is delivered far past its max age. With a route-health standby moving the track to
M2(https://github.com/moq-dev/moq/pull/10314), group 3, whose header the replaced copy held, is handed out about 8 s after its successors, past the reader's 2 s max age, and is never cut asOld.
Reproduction
The first reproduces on main (cbd27de054) with rs/moq-net/tests/integration/route_health.rs's payload_stall diamond (one-second groups, 2 s max age). In payload_stall, replace the stalled write(span.as_secs()).await with:
if matches!(stall, Stall::Headers) && span.as_secs() == 10 {
write(2).await;
m1_e.server.abort(Error::Stream(StreamError::Cancel));
m1_e.client.abort(Error::Stream(StreamError::Cancel));
write(span.as_secs() - 2).await;
} else {
write(span.as_secs()).await;
}
Then run payload_stall(Stall::Headers, Duration::from_secs(10)). E observes 0 frames and one Old failure. Stall::Upstream and Stall::Downstream with the same close observe 80 frames.
The second shows in #10314's a_standby_recovers_a_payload_stall_within_its_budget under Stall::Headers: group 3's frames arrive at the end of the run (stamped about 10.5 s after the stall began), while groups 4 to 11 arrive on time.
Suspect
Both involve a replaced copy that holds a group's header and none of its frames. The switch boundary is "the largest group any copy holds", so such a copy raises it, and its header-only groups are left to a copy that will never deliver them. They are then neither recovered from the serving route in time nor cut at the reader's budget.
(Written by Claude Opus 5.5)
- 主要言語
- Rust
- スター
- 1.6k
- フォーク
- 251
- 平均マージ
- 10時間 10分
- マージ済み PR(30日)
- 822
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
moq-dev/moq のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
moq-dev/moq#10463 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
moq-dev/moq#10460 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
quest
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
moq-dev/moq#10373 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
quest
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
moq-dev/moq#10336 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
Test connection's password prompt says the password is never saved, also for a keychain profileオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area: settings bug Haiku review: no-score ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MMFoundation/WallpaperMachine#346 ·
メンテナーはふだん 1 日以内に返信
-
Make the HTTP server's keep-alive and headers timeouts configurable対応中かも @mattgodbolt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
compiler-explorer/compiler-explorer#9902 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信