Re: [Web-SIG] Proposed WSGI extensions for asynchronous servers

2008-05-12 Thread Christopher Stawarz
On May 12, 2008, at 12:45 AM, Ionel Maries Cristian wrote: On Mon, May 12, 2008 at 3:25 AM, Christopher Stawarz [EMAIL PROTECTED] wrote: On May 11, 2008, at 7:05 PM, Phillip J. Eby wrote: For this to work, you're going to need this to take the wsgi.input object as a parameter. If you

Re: [Web-SIG] Proposed WSGI extensions for asynchronous servers

2008-05-12 Thread Christopher Stawarz
On May 12, 2008, at 12:18 PM, James Y Knight wrote: There are other issues. How do you do a DNS lookup? How do you get process completion notification? Heck, how do you run a process? These are valid questions that I'm not attempting to address with this proposal. So maybe the title of my

Re: [Web-SIG] Proposed WSGI extensions for asynchronous servers

2008-05-12 Thread Christopher Stawarz
On May 12, 2008, at 5:07 PM, James Y Knight wrote: Surely you need DNS lookup to make a socket connection? Do you mean to provide that in an external library via a threadpool? No, I don't mean to, because I don't care enough to bother. But if you or someone else did, you'd be free to.

Re: [Web-SIG] Proposed WSGI extensions for asynchronous servers

2008-05-11 Thread Christopher Stawarz
On May 11, 2008, at 7:05 PM, Phillip J. Eby wrote: At 06:15 PM 5/11/2008 -0400, Christopher Stawarz wrote: Non-blocking Input Stream ~ The ``x-wsgiorg.async.input`` variable provides a non-blocking replacement for ``wsgi.input``. It is an object with one method,

Re: [Web-SIG] Proposed WSGI extensions for asynchronous servers

2008-05-11 Thread Ionel Maries Cristian
My thinking is that the server *creates* the environ dictionary, so it can just keep a reference to it and update it as needed. Is middleware allowed to replace environ with another dict instance before passing it to the application? I wasn't aware that this was allowed, but if it is, then I