summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-05 12:45:10 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-05 12:45:10 +0300
commitb6475df79cd14d80c794abfc9d1edbcebbe86f2c (patch)
tree2bf4a06f070793b5210bdde4a431135bc05cba54 /src/nxt_main_process.c
parent9f8b746e776031e6eef6dea84c8dafbb8c24c725 (diff)
downloadunit-b6475df79cd14d80c794abfc9d1edbcebbe86f2c.tar.gz
unit-b6475df79cd14d80c794abfc9d1edbcebbe86f2c.tar.bz2
Ruby: request processing in multiple threads.
This closes #482 issue on GitHub.
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index ce8d6916..631b3146 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -242,6 +242,11 @@ static nxt_conf_map_t nxt_ruby_app_conf[] = {
NXT_CONF_MAP_STR,
offsetof(nxt_common_app_conf_t, u.ruby.script),
},
+ {
+ nxt_string("threads"),
+ NXT_CONF_MAP_INT32,
+ offsetof(nxt_common_app_conf_t, u.ruby.threads),
+ },
};