aio-libs / aio-libs/aiohttp

Marking response.force_close() doesn't prevent lingering

Aperta
#1,800 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
16.5k
Fork
2.4k
Merge medio
20h 10m
PR unite (30g)
221

Descrizione

## Long story short

Returning a response with `force_close()` before the request is fully read still causes lingering.

## Expected behaviour

Connection should be closed immediately after the response is written.

## Actual behaviour

The lingering logic in `web_protocol.py` is activated.

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.