[php-src] PR #25289: sapi/fpm: Preserve poll event indexes after worker replacement
| From: | iliaal | Date: | Sat, 07 Nov 2026 17:12:51 +0000 |
| Subject: | [php-src] PR #25289: sapi/fpm: Preserve poll event indexes after worker replacement | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40402@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25289
Author: iliaal
With
events.mechanism = poll and catch_workers_output = yes, FPM can stop
reading a replacement worker's output. When the next poll slot is occupied,
fpm_event_poll_add() registers the fd in another free slot but stores the occupied
index, so fpm_event_poll_wait() checks the wrong entry and skips the event. This is
independent of #25154, which fixes a queue use-after-free in the same file.