summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.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_main_process.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_main_process.c')
-rw-r--r--src/nxt_main_process.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 631b3146..99fc7995 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -233,6 +233,18 @@ static nxt_conf_map_t nxt_perl_app_conf[] = {
NXT_CONF_MAP_CSTRZ,
offsetof(nxt_common_app_conf_t, u.perl.script),
},
+
+ {
+ nxt_string("threads"),
+ NXT_CONF_MAP_INT32,
+ offsetof(nxt_common_app_conf_t, u.perl.threads),
+ },
+
+ {
+ nxt_string("thread_stack_size"),
+ NXT_CONF_MAP_INT32,
+ offsetof(nxt_common_app_conf_t, u.perl.thread_stack_size),
+ },
};