durusmail: quixote-users: wsgi_server.py for Quixote
wsgi_server.py for Quixote
2005-04-29
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-04-30
2005-05-01
2005-05-01
2005-05-01
2005-05-02
2005-05-01
2005-05-01
2005-04-30
2005-04-30
2005-04-30
wsgi_server.py for Quixote
Titus Brown
2005-04-30
-> Is there reason to believe that quixote applications will work reliably
-> under this multi-threaded server?   I wouldn't expect this to work
-> reliably
-> without at least hacking Quixote's Publisher.__init__ and
-> get_publisher()
-> to maintain a separate publisher for each thread.

You are correct, suh.

This is a bit of dilemma.  Quixote apps aren't thread-safe out of the
box,

        http://issola.caltech.edu/~t/q2-doc/multi-threaded.html

so I guess WSGIUtils isn't a good default server for Quixote ;(.
I'm not sure what is, though.

Note the PEP comment,

        http://www.python.org/peps/pep-0333.html#thread-support

so maybe WSGIUtils should be changed to allow this?

QWIP should also (by default) complain about being put in a
multi-threaded environment; env['wsgi.multithread'] is probably
the right way to check this.

--titus
reply