summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-18 22:33:53 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-18 22:33:53 +0300
commit6c3c83561a97b91f18a771e0c582c5ed4013a9a6 (patch)
tree32ebaf18f1ea9efdac9fc2b32eb5f7d49727d603 /src/nodejs
parent300347a5cffa4187921384bdd02c5bb90875f9e5 (diff)
downloadunit-6c3c83561a97b91f18a771e0c582c5ed4013a9a6.tar.gz
unit-6c3c83561a97b91f18a771e0c582c5ed4013a9a6.tar.bz2
Libunit: closing active requests on quit.
Diffstat (limited to 'src/nodejs')
-rw-r--r--src/nodejs/unit-http/unit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp
index 1ee5b742..c5bca49a 100644
--- a/src/nodejs/unit-http/unit.cpp
+++ b/src/nodejs/unit-http/unit.cpp
@@ -307,6 +307,8 @@ Unit::close_handler(nxt_unit_request_info_t *req)
} catch (exception &e) {
nxt_unit_req_warn(req, "close_handler: %s", e.str);
+ nxt_unit_request_done(req, NXT_UNIT_ERROR);
+
return;
}