]> granicus.if.org Git - php/commit
Fixed bug #78469
authorSergei Turchanov <turchanov@farpost.com>
Wed, 28 Aug 2019 03:05:14 +0000 (13:05 +1000)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 30 Aug 2019 14:06:50 +0000 (16:06 +0200)
commit8f564e5308970e3c1b96fd17e493c5c3a952954b
treeb6b08a309a6b2b4fa298d037be2cd3c8ffcb83b4
parented749edd477bfcc3923c086a6443aaa91192e5b7
Fixed bug #78469

fcgi_accept_request function is supposed to call a FastCGI implementation's
on_accept hook when entering an "accepting" stage (that is right before
calling "accept"). This hook implementation (fpm_request_accepting) updates
a worker state to an "accepting" state which is effectively an "Idle" state,
and updates counters on the scoreboard of the corresponding pool (idle++,
active--).

But this is not done when listening for client connections on a named pipe on
Windows platform. In that case a combination of
ConnectNamedPipe/WaitForSingleObject is used (to be able to catch in_shutdown
as far as I understand), but it is nonetheless functionally equivalent to
"accept" call. Also by not calling on_hook neither a worker's state is updated
to "accepting" state nor scoreboard counters are updated.
NEWS
main/fastcgi.c