[php-src] PR #25620: Fix FPM status counts on reused FastCGI connections

From: Date: Fri, 20 Nov 2026 07:06:32 +0000
Subject: [php-src] PR #25620: Fix FPM status counts on reused FastCGI connections
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40846@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25620 Author: AceMedia *AI-assisted implementation, testing and drafting.* > A worker serving several FastCGI requests on one connection increments FPM's active count > for every request, but only returns to idle when it accepts another connection. The status page can > therefore report more active and total processes than actual workers. > > I've changed the counter updates to use the worker's existing request stage. Moving > to idle or active updates those counts once per transition, while every request still increments > accepted conn. The new PHPT checks fresh and persistent connections, > the actual worker PID, active/idle/total and peak counts, and request totals. > > On Linux x86-64 under WSL2, the regression fails on the unmodified PHP-8.4 base > d8e34952 and PHP 8.6.0, and passes with this change on both. The PHP > 8.4 FPM suite passed 133 runnable tests, with 15 skips. On PHP 8.6.0, 147 tests passed and 13 > skipped; the one failure is the separate OPcache map-pointer regression for GH-23859, which also > fails on the unmodified release. A private FPM probe passed worker-state checks under static, > dynamic and ondemand managers. With pm.max_requests=5, both > keepalive and fresh connections still returned five responses per worker across 30 responses. > > This addresses the reproducible status-count case in #14212. I know #19191 is also open; this > patch changes only the FPM scoreboard updates and leaves the FastCGI callback API alone. I > haven't reproduced its original high-concurrency workload, nor tested native Windows, ZTS or > 32-bit builds.

« previous php.git-pulls (#40846) next »