Open
Description
WSGI apps are currently defined as a blocking abstraction: the existence of the write() callable, and the input callable blocking on reads mean that threads of some sort (whether real or green) are required to wrap a WSGI app.
It would be nice to directly support nonblocking behaviour - asyncio etc - in WSGI apps / middleware.
Some questions raised by this
- can this co-exist with the blocking protocol? e.g. do we have keys to look for to use it but the rest the same?
- should it deprecate the blocking protocol (or do we drop the blocking protocol in WSGI2 since trollius lets us deliver 2.7 support)?
Metadata
Metadata
Assignees
Labels
No labels