]> git.kaiwu.me - nginx.git/commit
Control API: reload support.
authorAva Hahn <a.hahn@f5.com>
Tue, 30 Dec 2025 19:35:18 +0000 (19:35 +0000)
committerAva Hahn <110854134+avahahn@users.noreply.github.com>
Tue, 1 Sep 2026 17:34:56 +0000 (10:34 -0700)
commit74133fba7c6cd15c726a69b7af30cd49c17d6e8a
tree65b90163f56c5db835b889562c6ad15be6be1271
parent4bc459a15cfc95a843e322664f38a87920050281
Control API: reload support.

A new /control/config endpoint provides configuration reload function
with feedback returned to the user on the outcome.

Example:

$ curl 127.0.0.1:1234/1/control/config -X PATCH -v | jq
< HTTP/1.1 200 OK
< ...
<
{
  "logs": []
}

$ curl 127.0.0.1:1234/1/control/config -X PATCH -v | jq
< HTTP/1.1 422 Unprocessable Entity
< ...
<
{
  "logs": [
  "...: invalid number of arguments in \"listen\" directive"
  ]
}

Co-authored-by: Pavel Pautov <p.pautov@f5.com>
src/os/unix/ngx_control.c
src/os/unix/ngx_process_cycle.c