Shutdown is wrong in all three: Go blocks a fixed 30s without draining, Rust aborts in-flight requests, TS has no deadline
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
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go, rust, typescript
Línea de trabajo
Empieza por los bucles accept de Rust y las tareas serve_connection en curso, y luego compara el comportamiento de referencia en go/main.go:92-97. Audita el comportamiento de TypeScript server.close() como se indica. Se considera terminado cuando el apagado detiene las nuevas conexiones, agota las solicitudes activas durante un máximo de 30 segundos y finaliza tras completarse o cuando vence el plazo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
On SIGTERM/SIGINT, the Go implementation drains in-flight requests via http.Server.Shutdown with a 30s timeout (go/main.go:92-97). The Rust implementation breaks its accept loops and exits main, which drops the tokio runtime — and with it any in-flight serve_connection tasks, aborting responses mid-flight.
Found during the code review of #27 (which rewrote the Rust shutdown path but preserved this pre-existing behavior — it is not a regression from that PR; the old single-listener code behaved the same way).
Affected implementation(s)
- Rust
- Go (reference behavior — already drains)
- TypeScript (worth auditing while at it: confirm
server.close()semantics wait for in-flight requests)
Expected behavior
On shutdown signal:
- Stop accepting new connections (already done).
- Allow in-flight requests to complete, up to a 30s deadline (matching Go).
- Exit after drain or deadline, whichever comes first.
Suggested fix (Rust)
Track connections in a tokio::task::JoinSet (or a counter + notify), and on shutdown call hyper's Connection::graceful_shutdown on active connections, then await the set with tokio::time::timeout(Duration::from_secs(30), ...).
Context
Split out from the review follow-ups on PR #27. Related: #25.
- Lenguaje dominante
- Rust
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 13 h 22 min
- PR fusionados (30 d)
- 27
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 ChainSafe/docker-socket-policy
-
Priority: P0 Status: Break Change Type: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
ChainSafe/docker-socket-policy#88 ·
Los mantenedores suelen responder en 1 día
-
Lifecycle actions and DELETE are allowed on containers that no policy coversPosiblemente ocupada @abienkowski la tomó hoy. AbiertoPriority: P1 Status: Break Change Type: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ChainSafe/docker-socket-policy#86 ·
Los mantenedores suelen responder en 1 día
-
Policy selection is nondeterministic when several policies allow one image; add container_names routing and deny on ambiguityPosiblemente ocupada @abienkowski la tomó hoy. AbiertoPriority: P1 Type: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
ChainSafe/docker-socket-policy#85 ·
Los mantenedores suelen responder en 1 día
-
Type: Feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ChainSafe/docker-socket-policy#65 ·
Los mantenedores suelen responder en 1 día
-
Type: Enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
ChainSafe/docker-socket-policy#46 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ChainSafe/docker-socket-policy
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
text as float loses precisionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
loongarch64: `unsupported linker arg: --no-rosegment` with rustc 1.100Posiblemente ocupada @monosans la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
rust-cross/cargo-zigbuild#503 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rust-lang/a-mir-formality#472 ·
Los mantenedores suelen responder en 1 día
-
agent:iq3-xxs area: cli duplication enhancement priority: P3 ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día