You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (pm->dynamic.max_spare_servers<pm->dynamic.min_spare_servers) {
429
429
zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] max_spare_servers(%d) must not be less than min_spare_servers(%d)", wp->config->name, pm->dynamic.max_spare_servers, pm->dynamic.min_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, pm->dynamic.start_servers, pm->dynamic.min_spare_servers, pm->dynamic.max_spare_servers);
438
-
return(-1);
438
+
return-1;
439
439
}
440
440
}
441
441
@@ -482,18 +482,18 @@ static int fpm_conf_process_all_pools() /* {{{ */
482
482
483
483
if (*ping!='/') {
484
484
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the ping page '%s' must start with a '/'", wp->config->name, ping);
485
-
return(-1);
485
+
return-1;
486
486
}
487
487
488
488
if (strlen(ping) <2) {
489
489
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the ping page '%s' is not long enough", wp->config->name, ping);
490
-
return(-1);
490
+
return-1;
491
491
}
492
492
493
493
for (i=0; i<strlen(ping); i++) {
494
494
if (!isalnum(ping[i]) &&ping[i] !='/'&&ping[i] !='-'&&ping[i] !='_'&&ping[i] !='.') {
495
495
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the ping page '%s' must containt only the following characters '[alphanum]/_-.'", wp->config->name, ping);
496
-
return(-1);
496
+
return-1;
497
497
}
498
498
}
499
499
@@ -502,7 +502,7 @@ static int fpm_conf_process_all_pools() /* {{{ */
502
502
} else {
503
503
if (strlen(wp->config->pm->pong) <1) {
504
504
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the ping response page '%s' is not long enough", wp->config->name, wp->config->pm->pong);
505
-
return(-1);
505
+
return-1;
506
506
}
507
507
}
508
508
} else {
@@ -519,24 +519,24 @@ static int fpm_conf_process_all_pools() /* {{{ */
519
519
520
520
if (*status!='/') {
521
521
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the status page '%s' must start with a '/'", wp->config->name, status);
522
-
return(-1);
522
+
return-1;
523
523
}
524
524
525
525
if (strlen(status) <2) {
526
526
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the status page '%s' is not long enough", wp->config->name, status);
527
-
return(-1);
527
+
return-1;
528
528
}
529
529
530
530
for (i=0; i<strlen(status); i++) {
531
531
if (!isalnum(status[i]) &&status[i] !='/'&&status[i] !='-'&&status[i] !='_'&&status[i] !='.') {
532
532
zlog(ZLOG_STUFF, ZLOG_ERROR, "[pool %s] the status page '%s' must containt only the following characters '[alphanum]/_-.'", wp->config->name, status);
0 commit comments