httpServe appears to be interfering with slave-thread
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Start by tracing the shutdown path in Snap/Http/Server.hs, then compare the exception handling in SlaveThread.hs and PartialHandler.hs. Use the linked sections and the proposed minimal reproduction to verify whether ThreadKilled reaches the parent invoking httpServe. Done means Ctrl-C shuts down the server and child threads without their output continuing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Children aren't getting harvested on ctrl-c in GHCi, can see their output continue even though the web server itself successfully shut down.
I think slave-thread needs 1 a ThreadKilled 2 exception to bubble up to the parent thread (the one in main which invoked httpServe) in order for it to do its thing.
This looks like a good candidate for starting to narrow things down.
I'll try to put together a minimal repro in a bit.
Some context from IRC:
< mightybyte> One of our apps started exhibiting this behavior a few months back.
< bitemyapp> I think perhaps it is not letting the ThreadKilled bubble up.
< mightybyte> And I think it happened around the time that some code was added that probably forked some threads.
< mightybyte> So that all lines up with what you're saying.
- Lenguaje dominante
- Haskell
- Estrellas
- 197
- Forks
- 87
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 snapframework/snap-server
-
Timeout for pure valuesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
snapframework/snap-server#118 · 5 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
snapframework/snap-server#96 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
snapframework/snap-server#94 · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
snapframework/snap-server#92 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
snapframework/snap-server#85 · 8 comentarios ·
Todos los issues de snapframework/snap-server
Issues similares
-
docs: install-manifest download links use main instead of master (404)Posiblemente ocupada @ChinmayaBisoi la tomó hace 1 día. Abierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 78/100
hasura/graphql-engine#10884 ·
-
New-pipeline: update TracyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AccelerateHS/accelerate#583 · 2 comentarios ·
-
component: hls-refactor-plugin status: needs triage type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
haskell/haskell-language-server#5111 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
alunduil/network-arbitrary#193 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
alunduil/siren-json.hs#245 ·
Los mantenedores suelen responder en 1 día