diff options
author | Paulius Sapragonas <pauliussap@gmail.com> | 2021-03-05 20:15:30 +0200 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2021-03-28 20:53:58 +0100 |
commit | eac1609a847f7cca45c9c14e1b9c4d72cea04fd6 (patch) | |
tree | 203b80f304ce36679641e96ef5d8c23745858e4d /sapi/fpm/fpm/fpm_process_ctl.c | |
parent | 830d38535178920bfaae6e8e8d93fadcba4a1a7e (diff) | |
download | php-git-eac1609a847f7cca45c9c14e1b9c4d72cea04fd6.tar.gz |
Max spawn child processes rate an once
* Add functionality to expect log config options
Diffstat (limited to 'sapi/fpm/fpm/fpm_process_ctl.c')
-rw-r--r-- | sapi/fpm/fpm/fpm_process_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/fpm/fpm/fpm_process_ctl.c b/sapi/fpm/fpm/fpm_process_ctl.c index a2f0f935e4..d8c0bc30d1 100644 --- a/sapi/fpm/fpm/fpm_process_ctl.c +++ b/sapi/fpm/fpm/fpm_process_ctl.c @@ -431,7 +431,7 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{ zlog(ZLOG_DEBUG, "[pool %s] %d child(ren) have been created dynamically", wp->config->name, children_to_fork); /* Double the spawn rate for the next iteration */ - if (wp->idle_spawn_rate < FPM_MAX_SPAWN_RATE) { + if (wp->idle_spawn_rate < wp->config->pm_max_spawn_rate) { wp->idle_spawn_rate *= 2; } continue; |