[Web-SIG] calling start_response and the write from a separate thread
Manlio Perillo
manlio_perillo at libero.it
Sun Dec 30 08:28:25 CET 2007
Graham Dumpleton ha scritto:
> On 29/12/2007, Manlio Perillo <manlio_perillo at libero.it> wrote:
>> Hi.
>>
>>
>> Maybe I have already posted something like this.
>>
>> From the WSGI spec it is not clear if a WSGI application is allowed to
>> call start_response and write from a separate thread.
>>
>> For my WSGI implementation for Nginx, calling the write callable from a
>> separate thread *will* cause problems (unless buffering is not enabled).
>
> Is that similar perhaps to the issue 'app_iter and threads' listed
> under WSGI 2.0 discussion points on wiki.
>
It's a different topic.
In that issue the problem is whether the WSGI middleware can iterate
over the app_iter using a different(s) thread(s).
There is also:
http://mail.python.org/pipermail/web-sig/2005-December/001807.html
> Graham
>
Manlio Perillo
More information about the Web-SIG
mailing list