Patch bug51736.patch for FPM related Bug #51736
Patch version 2010-05-08 08:22 UTC
Return to Bug #51736 |
Download this patch
Patch Revisions:
Developer: fat@php.net
Index: fpm_conf.c
===================================================================
--- fpm_conf.c (revision 298943)
+++ fpm_conf.c (working copy)
@@ -441,15 +441,15 @@
return -1;
}
- if (config->pm_max_spare_servers > config->pm_max_children ||
+ if (config->pm_min_spare_servers > config->pm_max_children ||
config->pm_max_spare_servers > config->pm_max_children) {
zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] min_spare_servers(%d) and max_spare_servers(%d) cannot be greater than max_children(%d)",
- wp->config->name, config->pm_max_spare_servers, config->pm_max_spare_servers, config->pm_max_children);
+ wp->config->name, config->pm_min_spare_servers, config->pm_max_spare_servers, config->pm_max_children);
return -1;
}
- if (config->pm_max_spare_servers < config->pm_max_spare_servers) {
- zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] max_spare_servers(%d) must not be less than min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, config->pm_max_spare_servers);
+ if (config->pm_max_spare_servers < config->pm_min_spare_servers) {
+ zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] max_spare_servers(%d) must not be less than min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, config->pm_min_spare_servers);
return -1;
}
|