[Web-SIG] [Python-Dev] wsgi validator with asynchronous handlers/servers

PJ Eby pje at telecommunity.com
Sun Mar 24 06:14:10 CET 2013


On Sat, Mar 23, 2013 at 7:30 PM, Luca Sbardella
<luca.sbardella at gmail.com> wrote:
>PJ Eby wrote:
>> The validator is correct for the spec.  You *must* call
>> start_response() before yielding any strings at all.
>
>
> Thanks for response PJ,
> that is what I, unfortunately, didn't want to hear, the validator being
> correct for the "spec" means I can't use it for my asynchronous stuff, which
> is a shame :-(((
> But why commit to send headers when you may not know about your response?
> Sorry if this is the wrong mailing list for the issue, I'll adjust as I go
> along.

Because async was added as an afterthought to WSGI about nine years
ago, and we didn't get it right, but it long ago was too late to do
anything about it.  A properly async WSGI implementation will probably
have to wait for Tulip (Guido's project to bring a standard async
programming API to Python).


More information about the Web-SIG mailing list