summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-10-28 17:46:54 +0300
committerMax Romanov <max.romanov@nginx.com>2021-10-28 17:46:54 +0300
commitbba97134e983541e94cf73e93900729e3a3e61fc (patch)
treece0322c432f1d08cd302209f1403fab112788b2c /src/nxt_application.h
parent803e0373029a80994a85781d0b73b6cfa95bcf5a (diff)
downloadunit-bba97134e983541e94cf73e93900729e3a3e61fc.tar.gz
unit-bba97134e983541e94cf73e93900729e3a3e61fc.tar.bz2
Moving request limit control to libunit.
Introducting application graceful stop. For now only used when application process reach request limit value. This closes #585 issue on GitHub.
Diffstat (limited to '')
-rw-r--r--src/nxt_application.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index 6fbdc4be..4612f072 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -101,6 +101,7 @@ struct nxt_common_app_conf_s {
nxt_conf_value_t *limits;
size_t shm_limit;
+ uint32_t request_limit;
union {
nxt_external_app_conf_t external;
@@ -137,7 +138,7 @@ NXT_EXPORT extern nxt_str_t nxt_server;
extern nxt_app_module_t nxt_external_module;
NXT_EXPORT nxt_int_t nxt_unit_default_init(nxt_task_t *task,
- nxt_unit_init_t *init);
+ nxt_unit_init_t *init, nxt_common_app_conf_t *conf);
#endif /* _NXT_APPLICATION_H_INCLIDED_ */