Hi Graham,

Thanks for the reply.

On 27 August 2011 06:27, Graham Dumpleton <[email protected]> wrote:
> On 27 August 2011 04:04, Chen Zheng <[email protected]> wrote:
>> Hi,
>>
>> Due to some reason, I have to disable thread support in python
>
> Can you explain what the technical reason is?

I'm working on some python hosting project, thread support is disabled
for management concern, anyway user is only allowed for one process
and one thread.

>> and still thinking of using mod_wsgi. I just want to use the 'AddHandler
>> wsgi-script .py' way,  like the cgi-script, only a little bit faster.
>>
>> No daemons in background, so one process per apache worker is enough,
>> is thread really necessary in this situation?
>>
>> Will a dummy thread or a fake WITH_THREAD work? Thanks.
>
> Although mod_wsgi supports threads and in daemon mode may even use
> some of its own background threads to keep things running, you
> yourself don't have to use a multithreaded configuration for handling
> of requests.

Yes, I want single thread, or to be more precise, single process to
handle each request, how to config that?

Is wsgi-script handler mode single threaded?  If yes, thread support
is not needed,  unless modwsgi still has a thread pool to care about
even in this mode.

If thread support is really a must, is it possible to use a threaded
python to do all the management work, and a non-threaded python to
handle each request?


-jaime


> It is a bit hard to answer your question without knowing the technical
> reasons why you can't use an underlying Python implementation that
> supports threading. Your comment about what you want in the way of
> 'one process per apache worker' suggests you don't actually know how
> mod_wsgi works as it is.
>
> So, can we start with the reason first and work from there to what
> options you may have?
>
> Graham
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to