@@ -390,7 +390,7 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{
390
390
391
391
if (idle < wp -> config -> pm_min_spare_servers ) {
392
392
if (wp -> running_children >= wp -> config -> pm_max_children ) {
393
- if (!wp -> warn_max_children ) {
393
+ if (!wp -> warn_max_children && ! wp -> shared ) {
394
394
fpm_scoreboard_update (0 , 0 , 0 , 0 , 0 , 1 , 0 , FPM_SCOREBOARD_ACTION_INC , wp -> scoreboard );
395
395
zlog (ZLOG_WARNING , "[pool %s] server reached pm.max_children setting (%d), consider raising it" , wp -> config -> name , wp -> config -> pm_max_children );
396
396
wp -> warn_max_children = 1 ;
@@ -409,17 +409,15 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{
409
409
/* get sure it won't exceed max_children */
410
410
children_to_fork = MIN (children_to_fork , wp -> config -> pm_max_children - wp -> running_children );
411
411
if (children_to_fork <= 0 ) {
412
- if (!wp -> warn_max_children ) {
412
+ if (!wp -> warn_max_children && ! wp -> shared ) {
413
413
fpm_scoreboard_update (0 , 0 , 0 , 0 , 0 , 1 , 0 , FPM_SCOREBOARD_ACTION_INC , wp -> scoreboard );
414
414
zlog (ZLOG_WARNING , "[pool %s] server reached pm.max_children setting (%d), consider raising it" , wp -> config -> name , wp -> config -> pm_max_children );
415
415
wp -> warn_max_children = 1 ;
416
416
}
417
417
wp -> idle_spawn_rate = 1 ;
418
418
continue ;
419
419
}
420
- if (!wp -> shared ) {
421
- wp -> warn_max_children = 0 ;
422
- }
420
+ wp -> warn_max_children = 0 ;
423
421
424
422
fpm_children_make (wp , 1 , children_to_fork , 1 );
425
423
@@ -515,7 +513,7 @@ void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg) /
515
513
/* zlog(ZLOG_DEBUG, "[pool %s] heartbeat running_children=%d", wp->config->name, wp->running_children);*/
516
514
517
515
if (wp -> running_children >= wp -> config -> pm_max_children ) {
518
- if (!wp -> warn_max_children ) {
516
+ if (!wp -> warn_max_children && ! wp -> shared ) {
519
517
fpm_scoreboard_update (0 , 0 , 0 , 0 , 0 , 1 , 0 , FPM_SCOREBOARD_ACTION_INC , wp -> scoreboard );
520
518
zlog (ZLOG_WARNING , "[pool %s] server reached max_children setting (%d), consider raising it" , wp -> config -> name , wp -> config -> pm_max_children );
521
519
wp -> warn_max_children = 1 ;
@@ -530,9 +528,7 @@ void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg) /
530
528
return ;
531
529
}
532
530
}
533
- if (!wp -> shared ) {
534
- wp -> warn_max_children = 0 ;
535
- }
531
+ wp -> warn_max_children = 0 ;
536
532
fpm_children_make (wp , 1 , 1 , 1 );
537
533
538
534
if (fpm_globals .is_child ) {
0 commit comments