summaryrefslogtreecommitdiff
path: root/sapi/fpm/fpm/fpm_process_ctl.c
diff options
context:
space:
mode:
authorPaulius Sapragonas <pauliussap@gmail.com>2021-03-05 20:15:30 +0200
committerJakub Zelenka <bukka@php.net>2021-03-28 20:53:58 +0100
commiteac1609a847f7cca45c9c14e1b9c4d72cea04fd6 (patch)
tree203b80f304ce36679641e96ef5d8c23745858e4d /sapi/fpm/fpm/fpm_process_ctl.c
parent830d38535178920bfaae6e8e8d93fadcba4a1a7e (diff)
downloadphp-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.c2
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;