diff options
author | Omar Polo <op@omarpolo.com> | 2024-06-14 12:42:18 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-06-14 12:42:18 +0000 |
commit | 23ea79cec6c409d3b98977727b8d5ed857acfd4d (patch) | |
tree | 2312cacca075286d6c9e3ac22c02ae246f1f52c7 /regress | |
parent | c616a6d6f4299ab0070afdb23aebe46ff4fb2e6a (diff) |
propagate prefork value
otherwise the child processes still believet the prefork value is
3 and can end up reading/writing out of bounds when setting up the
sockets. Actually, server processes shouldn't create pipes to other
servers, but this is left for a follow-up diff.
Issue reported by la ninpre, thank you!
Diffstat (limited to 'regress')
-rwxr-xr-x | regress/regress | 1 | ||||
-rw-r--r-- | regress/tests.sh | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/regress/regress b/regress/regress index 0ace045..82d17a9 100755 --- a/regress/regress +++ b/regress/regress @@ -68,6 +68,7 @@ run_test test_log_file run_test test_ipv4_addr run_test test_ipv6_addr need_ipv6 run_test test_ipv6_server need_ipv6 +run_test test_high_prefork # TODO: add test that uses only a TLSv1.2 or TLSv1.3 # TODO: add a test that attempt to serve a non-regular file diff --git a/regress/tests.sh b/regress/tests.sh index 4581df0..7648278 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -521,3 +521,10 @@ test_ipv6_server() { fetch / check_reply "20 text/gemini" "# hello world" || return 1 } + +test_high_prefork() { + setup_simple_test 'prefork 12' + + fetch / + check_reply "20 text/gemini" "# hello world" || return 1 +} |