Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
7 changes: 7 additions & 0 deletions docs/worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`...)
Expand Down