> At the end of every request I have to execute some code (eg to close a
> database connection). However, sometimes an error occurs in code, so I
> also have to wrap all in "try".
> Sometimes there is a timeout (hara-kiri). I would like to my "final" code
> perform despite anything.
>
> I'm thinking about something like: uwsgi.after_req_hook
>
> Any ideas how to smartly solve my problem?
>
>

Hi, if i understand correctly you need a way to have only a part of your
code running without harakiri ?
-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to