[Python-Dev] wsgi validator with asynchronous handlers/servers
PJ Eby
pje at telecommunity.com
Sat Mar 23 21:27:31 CET 2013
On Sat, Mar 23, 2013 at 3:05 PM, Luca Sbardella
<luca.sbardella at gmail.com> wrote:
> The pseudocode above does yields bytes before start_response, 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.
More information about the Python-Dev
mailing list