[prev in list] [next in list] [prev in thread] [next in thread]
List: python-web-sig
Subject: [Web-SIG] WSGI - alternate ideas, part II
From: pje () telecommunity ! com (Phillip J ! Eby)
Date: 2004-09-16 17:13:44
Message-ID: 5.1.1.6.0.20040916111212.021585b0 () mail ! telecommunity ! com
[Download RAW message or body]
At 08:02 AM 9/16/04 -0400, Peter Hunt wrote:
>I think that the application should be passed a finish() method as a
>parameter or start_response return value. If the WSGI application is
>not a generator and returns wsgi.NOT_DONE_YET (similar to
>Twisted.web's NOT_DONE_YET), it is required to call finish().
>Otherwise, the gateway will call finish() after the generator is
>finished or a string value is returned.
>
>That way, one could do all of the deferred calls they want, and simply
>return NOT_DONE_YET and call finish().
>
>How does that sound?
Way too complicated in the general case. I'd prefer a solution that
doesn't excessively complicate middleware or synchronous servers, just to
support asynchronous applications that are unlikely to be portable anyway.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic