Skip to content

Commit ef75955

Browse files
Nilix007nwse-fwn
authored andcommitted
Fix occasional "failed to acquire scoreboard" warning
With request timeouts configured, php-fpm occasionally prints the following warning: WARNING: failed to acquire scoreboard This is happens when php-fpm checks the child scoreboards for timeouts, but fails to acquire a lock immediately. As this can (and does) occur during normal operation, this commit simply removes the warning altogether.
1 parent 789a37f commit ef75955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_request.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *now,
231231

232232
proc_p = fpm_scoreboard_proc_acquire(child->wp->scoreboard, child->scoreboard_i, 1);
233233
if (!proc_p) {
234-
zlog(ZLOG_WARNING, "failed to acquire scoreboard");
234+
/* we might fail to acquire the lock, so we'll just give up without any warning */
235235
return;
236236
}
237237

0 commit comments

Comments
 (0)