falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

ASGI HTTP protocol 2.4: `send()` may raise `OSError` #2323

Open vytas7 opened 3 weeks ago

vytas7 commented 3 weeks ago

In the ASGI HTTP & WebSocket protocol version 2.4, calling send() on a closed connection should raise an OSError.

...but I haven't really been able to reproduce this in real servers (Uvicorn, Hypercorn).

Also, considering how the flow usually looks like, this is more important for WebSockets, which will be addressed separately in #2292.