summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.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_conf_validation.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 '')
-rw-r--r--src/nxt_conf_validation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 1ce2d9ea..8dd9082d 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -615,6 +615,10 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_ruby_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,
},
NXT_CONF_VLDT_NEXT(nxt_conf_vldt_common_members)