[Web-SIG] A 'shutdown' function in WSGI
ziade.tarek at gmail.com
Tue Feb 21 09:23:38 CET 2012
On Tue, Feb 21, 2012 at 8:56 AM, Simon Sapin <simon.sapin at exyr.org> wrote:
> Le 21/02/2012 08:47, Tarek Ziadé a écrit :
> Yes, I also think shutting down the server is completely orthogonal to
> If the shutdown callback is next to the application and not registered in
> a request, why not also have the symmetric "server start up" callback that
> would not wait for a request? This would avoid workarounds like
> Both of these callbacks could be called once per process (aka. space where
> requests share memory.)
> Instead of having to provide two or three objects separately to a server,
> how about making the callbacks attributes of the application callable?
can you show us an example ?
> Simon Sapin
Tarek Ziadé | http://ziade.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Web-SIG