[PR][php-src][#1169][master] - Double fastcgi_end_request on max_children limit (bug #67583)
| From: | noreply@php.net | Date: | Wed, 11 Mar 2015 09:38:50 +0000 |
| Subject: | [PR][php-src][#1169][master] - Double fastcgi_end_request on max_children limit (bug #67583) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2716@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1169
Warning: according to github, the Pull Request cannot be merged without manual conflict resolution!
Pull Request Description:
PHP sends 2 FastCGI
FCGI_END_REQUEST records instead of one when
fastcgi_finish_request(); is called and the FPM param max_requests is
exceeded.
* One is sent on fastcgi_finish_request(); call
* The other is sent in block fpm_main.c:1951 requests++; if (max_requests && (requests
== max_requests)) { fcgi_finish_request(&request, 1); break; }
It confuses fastcgi client (i.e. nginx) receiving 2 FCGI_END_REQUEST records one after another.
The author has set the request->closed flag to prevent a second FastCGI record to be
sent.
See https://bugs.php.net/bug.php?id=67583