[php-src] PR #25517: Fix GH-25515: FPM ondemand counts a child being idle-killed as idle
| From: | lazerg | Date: | Tue, 17 Nov 2026 12:43:19 +0000 |
| Subject: | [php-src] PR #25517: Fix GH-25515: FPM ondemand counts a child being idle-killed as idle | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40724@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25517
Author: lazerg
When the master has already sent SIGQUIT to the last idle child for
pm.process_idle_timeout, fpm_pctl_on_socket_accept() still counts that
child as idle and doesn't fork. The child exits without accepting, and since the ondemand event
is edge-triggered the connection sits in the backlog until another client connects. Skipping
children with idle_kill set makes the master fork a new child for it.
I reproduced it with the reporter's script on Linux (2 of 10 pools hung within 5 minutes, none
after the fix). There's no test because the window is too small to hit reliably in CI.
Fixes #25515