Re: A 'shutdown' function in WSGI
Tarek Ziadé <[email protected]> Tue, 21 Feb 2012 14:51:09 +0100
| Newsgroups | gmane.comp.python.web |
|---|---|
| Message-ID | <CAGSi+Q45CR3w-q2e95YSoXsH-Eyd_6ggcMobcwwyGeDB7nbNxQ@mail.gmail.com> |
On Tue, Feb 21, 2012 at 2:46 PM, Tarek Ziadé <[email protected]> wrote: > here's a very simple demo: http://tarek.pastebin.mozilla.org/1489505 > There are two typos but the effect remains the same since you are locked before you reach those lines: - atexit call worker.stop() instead of worker.join() - in worker.stop(), it calls worker.join() instead of worker.join(self) -- Tarek Ziadé | http://ziade.org _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org