summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-05 16:10:59 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-05 16:10:59 +0300
commitd321d454f9304b083d62280d0621f282a74047ee (patch)
tree6b943c825614a541a2ebde01c08c66097b0eac79 /src/nxt_conf_validation.c
parente17e73eddab015b8942d2228780bbd9afcc5e392 (diff)
downloadunit-d321d454f9304b083d62280d0621f282a74047ee.tar.gz
unit-d321d454f9304b083d62280d0621f282a74047ee.tar.bz2
Perl: request processing in multiple threads.
This closes #486 issue on GitHub.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 8dd9082d..8e6279fa 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -604,6 +604,14 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_perl_members[] = {
.name = nxt_string("script"),
.type = NXT_CONF_VLDT_STRING,
.flags = NXT_CONF_VLDT_REQUIRED,
+ }, {
+ .name = nxt_string("threads"),
+ .type = NXT_CONF_VLDT_INTEGER,
+ .validator = nxt_conf_vldt_threads,
+ }, {
+ .name = nxt_string("thread_stack_size"),
+ .type = NXT_CONF_VLDT_INTEGER,
+ .validator = nxt_conf_vldt_thread_stack_size,
},
NXT_CONF_VLDT_NEXT(nxt_conf_vldt_common_members)