Skip to content

Conversation

dmitry-saprykin
Copy link
Contributor

Php sends 2 fastcgi FCGI_END_REQUEST records instead of one when fastcgi_finish_request(); called and fpm param max_requests exceeded.

  • one is sent on fastcgi_finish_request(); call
  • 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.
So I have set request->closed flag to prevent second FastCGI record sending.

@dmitry-saprykin dmitry-saprykin deleted the double_fastcgi_end_request_fix branch July 7, 2014 11:15
@Berbe
Copy link
Contributor

Berbe commented Mar 5, 2015

Why having closed this pull request to the master branch? #710 wanted to merge in 5.5.14, a now released and outdated branch...

@Berbe
Copy link
Contributor

Berbe commented Mar 11, 2015

I opened #1169 to take over this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants