resume: a route switch after a header-only payload stall never recovers, and hands a held group out past its max age
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- backend, networking
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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)
- Lenguaje dominante
- Rust
- Estrellas
- 1.6k
- Forks
- 251
- Merge medio
- 10 h 10 min
- PR fusionados (30 d)
- 822
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de moq-dev/moq
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
moq-dev/moq#10463 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
moq-dev/moq#10460 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
quest
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
moq-dev/moq#10373 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
quest
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
moq-dev/moq#10336 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de moq-dev/moq
Issues similares
-
Test connection's password prompt says the password is never saved, also for a keychain profileAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
area: settings bug Haiku review: no-score ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MMFoundation/WallpaperMachine#346 ·
Los mantenedores suelen responder en 1 día
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día