actix / actix/actix-web

Stop streaming HTTP response non-gracefully

Aperta
#1,620 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
24.8k
Fork
1.9k
Merge medio
23h 10m
PR unite (30g)
26

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.