summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-09-15 20:30:24 +0300
committerMax Romanov <max.romanov@nginx.com>2017-09-15 20:30:24 +0300
commit0bec14878e99de280046e1d1b1a0195e5478c808 (patch)
treef5f40c8b9b4d1f3679d6daf38031002b4160d05b /src/nxt_conf_validation.c
parent90ae152ce0ace8f2c41a012b9fa52b2f3283a845 (diff)
downloadunit-0bec14878e99de280046e1d1b1a0195e5478c808.tar.gz
unit-0bec14878e99de280046e1d1b1a0195e5478c808.tar.bz2
Introducing application timeout.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 337498d9..80e1de6f 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -66,6 +66,21 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_listener_members[] = {
};
+static nxt_conf_vldt_object_t nxt_conf_vldt_app_limits_members[] = {
+ { nxt_string("timeout"),
+ NXT_CONF_INTEGER,
+ NULL,
+ NULL },
+
+ { nxt_string("requests"),
+ NXT_CONF_INTEGER,
+ NULL,
+ NULL },
+
+ { nxt_null_string, 0, NULL, NULL }
+};
+
+
static nxt_conf_vldt_object_t nxt_conf_vldt_python_members[] = {
{ nxt_string("type"),
NXT_CONF_STRING,
@@ -77,6 +92,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_python_members[] = {
NULL,
NULL },
+ { nxt_string("limits"),
+ NXT_CONF_OBJECT,
+ &nxt_conf_vldt_object,
+ (void *) &nxt_conf_vldt_app_limits_members },
+
{ nxt_string("user"),
NXT_CONF_STRING,
nxt_conf_vldt_system,
@@ -117,6 +137,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_php_members[] = {
NULL,
NULL },
+ { nxt_string("limits"),
+ NXT_CONF_OBJECT,
+ &nxt_conf_vldt_object,
+ (void *) &nxt_conf_vldt_app_limits_members },
+
{ nxt_string("user"),
NXT_CONF_STRING,
nxt_conf_vldt_system,
@@ -162,6 +187,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_go_members[] = {
NULL,
NULL },
+ { nxt_string("limits"),
+ NXT_CONF_OBJECT,
+ &nxt_conf_vldt_object,
+ (void *) &nxt_conf_vldt_app_limits_members },
+
{ nxt_string("user"),
NXT_CONF_STRING,
nxt_conf_vldt_system,