php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51769 the problem of fpm_conf.c
Submitted: 2010-05-08 04:58 UTC Modified: 2010-08-21 08:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lxltiancai at 126 dot com Assigned: fat (profile)
Status: Closed Package: *General Issues
PHP Version: 5.3.2 OS: ubuntu 9.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lxltiancai at 126 dot com
New email:
PHP Version: OS:

 

 [2010-05-08 04:58 UTC] lxltiancai at 126 dot com
Description:
------------
when i start php-fpm,i met the fellowing message:
[pool www] start_servers(18) must not be less than min_spare_servers(30) and not greater than max_spare_servers(30)

but in fact,the value of min_spare_servers is 5;

Test script:
---------------
there is something wrong in line 459-460 of fpm_conf.c
i think the correct code shoule be:


			} else if (config->pm_start_servers < config->pm_min_spare_servers || config->pm_start_servers > config->pm_max_spare_servers) {
				zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] start_servers(%d) must not be less than min_spare_servers(%d) and not greater than max_spare_servers(%d)", wp->config->name, config->pm_start_servers, config->pm_min_spare_servers, config->pm_max_spare_servers);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-08 11:52 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-05-08 11:52 UTC] kalle@php.net
Please try using this snapshot:

  http://snaps.php.net/php6.0-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2010-05-08 11:53 UTC] kalle@php.net
Hmm I meant try a snapshot from trunk where php-fpm is actively developed. I belive a similar bug if not the same was just fixed in trunk today
 [2010-08-09 01:13 UTC] felipe@php.net
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: fat
 [2010-08-21 08:27 UTC] fat@php.net
-Status: Assigned +Status: Closed
 [2010-08-21 08:27 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This has been fixed in revision 299141
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 03:01:31 2025 UTC