[Twisted-web] Re: [Web-SIG] WSGI woes
Phillip J. Eby
pje at telecommunity.com
Thu Sep 23 03:01:38 CEST 2004
At 08:39 PM 9/16/04 -0400, Donovan Preston wrote:
>On Sep 16, 2004, at 1:41 PM, Phillip J. Eby wrote:
>
>> resume = environ['wsgi.pause_output']()
>>
>>Where 'resume' is then a callback function that can be invoked to resume
>>iteration. This keeps it to a single extension key, helps ensure the
>>correct sequence of actions, and makes it easier to implement in some
>>cases, while not making other cases any harder.
>
>Well, I guess I sparked some discussion here. Great! I am +1 on the above
>construct, calling pause_output and yielding an empty string. I'm glad
>this technique came up because I hadn't paid enough attention to the
>environ dict and how it could be used to do something like this.
>
>I think with servers providing a pause_output callable like this,
>asynchronous applications will be possible and the isolation between the
>layers can be preserved. I am going to try writing some code using this
>construct and provide further feedback after I do.
So... how'd it work out? :)
More information about the Web-SIG
mailing list