From 66650046381024011796eb9ca4ffd66d22c2c9fb Mon Sep 17 00:00:00 2001 From: "serge.hardy.additi" Date: Wed, 15 Oct 2025 14:00:50 +0200 Subject: [PATCH 1/2] doc(config): minor typo --- docs/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config.md b/docs/config.md index 306d7e3f4..788a6b079 100644 --- a/docs/config.md +++ b/docs/config.md @@ -12,7 +12,7 @@ A minimal `Caddyfile` to serve a PHP application is shown below: # The hostname to respond to localhost -# Optionaly, the directory to serve files from, otherwise defaults to the current directory +# Optionally, the directory to serve files from, otherwise defaults to the current directory #root public/ php_server ``` From f77eca5190760b75c5cd62ef2a6a2cd08e0443b8 Mon Sep 17 00:00:00 2001 From: "serge.hardy.additi" Date: Wed, 15 Oct 2025 13:59:57 +0200 Subject: [PATCH 2/2] doc(config): add a section for worker and thread numbers requirements --- docs/worker.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/worker.md b/docs/worker.md index e055436d3..32c54b2bf 100644 --- a/docs/worker.md +++ b/docs/worker.md @@ -163,6 +163,13 @@ frankenphp { } ``` +### Number of threads + +When the worker mode is enabled, an additional thread is required to handle the incoming requests, +so the default `num_threads` value is `1 + 2x(number of available CPUs)`. + +Thus, in that mode if `num_threads` and `num` are explicitly set, `num_threads` must be strictly greater then `num`. + ## Superglobals Behavior [PHP superglobals](https://www.php.net/manual/en/language.variables.superglobals.php) (`$_SERVER`, `$_ENV`, `$_GET`...)