On May 13, 11:05 am, Marius Gedminas <[email protected]> wrote:

> Threads that you started manually, right?

Yes.

> I don't know how to reliably trap the server shutdown, though.  It
> depends on the particular server you're using to serve your WSGI app, I
> suppose.  (For the same reason I'm also not sure it's safe to spawn
> threads from load_environment.)

I've looked around some other discussion forums and it seems that
there is no way to trap the shutdown from within the server.

> I'm not sure what could've changed with the Ubuntu 9.04 -> 10.04
> upgrade; if you're using the default Python version (2.6 on both), I'd
> expect the same behaviour on both: i.e. process not exiting until all
> threads stop.

The Ubuntu upgrade included an upgrade for Python from 2.6.4 -> 2.6.5.
The problem stems from this bugfix between the two versions:
http://bugs.python.org/issue1722344

Paster shuts down fine with original 2.6.4. I re-compiled 2.6.4 with
the patched files from the bugfix and Paster hangs on shutdown again.

Seems like I'll just have to downgrade for now.

Thank you Marius for the detailed answer, it was very much
appreciated!

Martine

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to