Yu're most probably right. 

But I've seen that scgi_server.py does not respect the
"--max-children".

I've put to 1, and if I stress it with ab2 -n200 -c5,
I see 5 children created!!.

PS: I'm using mod_scgi-1.2_alpha1-r2, scgi-1.2 and
apache 2.0.54 on a gentoo 2005.0. 


--- [EMAIL PROTECTED] wrote:

> vincent delft said:
> > Does this is normal that session are not working
> with
> > scgi ?
> >
> > For example the "altdemo.py", with medusa, twisted
> it
> > works correctly. With scgi, the "get_user()"
> return
> > always None.
> 
> The default session storage mechanism is
> memory-based; the sessions are
> stored in a dictionary.  SCGI creates multiple
> instances of the
> application (multiple processes), and they can't see
> each other's
> sessions.  So it depends which subprocess your
> request happens to hit.
> 
> You can set --max-children=1 to make it create only
> one instance, or use a
> storage mechanism that works with multiple
> processes.  Quixote doesn't
> come with one, but the session2 package I posted
> yesterday has
> DirectorySessionStore, which saves the sessions in a
> directory and doesn't
> require any special libraries to run.  You can get
> it at quixote.idyll.org
> .
> 
> -- 
> -- Mike Orr <[EMAIL PROTECTED]>
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to