[Python-Dev] wsgi validator with asynchronous handlers/servers (original) (raw)
PJ Eby pje at telecommunity.com
Sat Mar 23 21:27:31 CET 2013
- Previous message: [Python-Dev] wsgi validator with asynchronous handlers/servers
- Next message: [Python-Dev] [RELEASE] Python 2.7.4 release candidate 1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Mar 23, 2013 at 3:05 PM, Luca Sbardella <luca.sbardella at gmail.com> wrote:
The pseudocode above does yields bytes before startresponse, but they are not body bytes, they are empty bytes so that the asynchronous wsgi server releases the eventloop and call back at the next eventloop iteration.
I'm I misinterpreting the pep, or the wsgi validator should be fixed accordingly?
The validator is correct for the spec. You must call start_response() before yielding any strings at all.
- Previous message: [Python-Dev] wsgi validator with asynchronous handlers/servers
- Next message: [Python-Dev] [RELEASE] Python 2.7.4 release candidate 1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]