actix / actix/actix-web

Stop streaming HTTP response non-gracefully

Abierto
#1,620 0 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
24.8k
Forks
1.9k
Merge medio
23 h 10 min
PR fusionados (30 d)
26

Descripción

Imagine you have a route with streaming HTTP response.
You download something from somewhere and send it to the user as soon as you receive it.

Now imagine as you download next chunk unrecoverable error happens, you can no longer proceed.

I wasn't able to find how to stop actor in such a way that response will be interrupted, signaling to the user that response is not complete. Instead actor stopping seems to always finish response gracefully and user silently gets incomplete response (file for instance).

It would be great to have some API to be able to achieve above goal.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.