actix / actix/actix-web

Stop streaming HTTP response non-gracefully

Ouverte
#1,620 0 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
24.8k
Forks
1.9k
Merge moyen
23 h 10 min
PR mergées (30 j)
26

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.