[Web-SIG] Proposed WSGI extensions for asynchronous servers

Phillip J. Eby pje at telecommunity.com
Mon May 12 03:09:41 CEST 2008

At 08:25 PM 5/11/2008 -0400, Christopher Stawarz wrote:
>Given that the semantics of wsgi.input are, in general, incompatible
>with non-blocking execution, I'm inclined to think that such
>middleware would either need to be rewritten to use x- 
>wsgiorg.async.input, or just couldn't be used with asynchronous
>servers.  But I'll think about it some more -- maybe there's a way to
>make this work.

Please read 
http://www.python.org/dev/peps/pep-0333/#server-extension-apis for 
the lowdown on this.  It's only seven paragraphs, but it already 
covers this ground thoroughly.

>middleware allowed to replace environ with another dict instance
>before passing it to the application?

See the same seven paragraphs for the answer to this as well (albeit 
somewhat implicitly).

More information about the Web-SIG mailing list