mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
added --no-harakiri-arh
This commit is contained in:
@@ -514,6 +514,11 @@ clear2:
|
||||
void uwsgi_after_request_wsgi(struct wsgi_request *wsgi_req) {
|
||||
|
||||
if (up.after_req_hook) {
|
||||
if (uwsgi.harakiri_no_arh) {
|
||||
// leave harakiri mode
|
||||
if (uwsgi.workers[uwsgi.mywid].harakiri > 0)
|
||||
set_harakiri(0);
|
||||
}
|
||||
PyObject *arh = python_call(up.after_req_hook, up.after_req_hook_args, 0, NULL);
|
||||
if (!arh) {
|
||||
PyErr_Print();
|
||||
|
||||
@@ -50,6 +50,9 @@ static struct option long_base_options[] = {
|
||||
{"workers", required_argument, 0, 'p'},
|
||||
{"harakiri", required_argument, 0, 't'},
|
||||
{"harakiri-verbose", no_argument, &uwsgi.harakiri_verbose, 1},
|
||||
{"harakiri-no-arh", no_argument, &uwsgi.harakiri_no_arh, 1},
|
||||
{"no-harakiri-arh", no_argument, &uwsgi.harakiri_no_arh, 1},
|
||||
{"no-harakiri-after-req-hook", no_argument, &uwsgi.harakiri_no_arh, 1},
|
||||
{"spooler-harakiri", required_argument, 0, LONG_ARGS_SPOOLER_HARAKIRI},
|
||||
{"mule-harakiri", required_argument, 0, LONG_ARGS_MULE_HARAKIRI},
|
||||
#ifdef UWSGI_XML
|
||||
|
||||
Reference in New Issue
Block a user