[Bug 1184376] Re: REST server crashes on "reopen"

Barry Warsaw 1184376 at bugs.launchpad.net
Mon Jun 17 15:47:18 CEST 2013

This turned out to be a more extensive branch than anticipated because
of weirdness in three competing constraints.  To properly shutdown the
WSGI server, the .shutdown() method must be called in a separate thread
from the server.  But because of SQLite constraints, the server must run
in the main thread, and because of Python signal handling semantics, the
signal handlers must run in the main thread.  I solved this, by running
a subthread that just waits on an Event and then calls the .shutdown().
The signal handler fires the Event.

I also greatly simplified the bin/runner implementation and removed some
command line options that weren't really being used.

Thanks for the test code!  I did a little bit of refactoring, but it was
very helpful.

** Changed in: mailman
       Status: In Progress => Fix Committed

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  REST server crashes on "reopen"

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list