Welcome! Log In Create A New Profile

Advanced

Re: Nginx patch for unexpected FASTCGI_END_REQUEST on php keep_conn + fastcgi_finish_request

Maxim Dounin
July 04, 2014 09:24AM
Hello!

On Fri, Jul 04, 2014 at 05:18:52PM +0400, Dmitry Saprykin wrote:

> Hello,
>
> This changeset adds support for FastCGI FCGI_END_REQUEST record type.
> Now nginx does not process this type of FastCGI record.
> In case of usage php fastcgi upstream which finishes FastCGI
> requests before end of script using fastcgi_finish_request() call
> it leads to "upstream sent unexpected FastCGI record: 3 while reading
> response header from upstream" error messages and 502 for clients.
>
> Changeset parses FCGI_END_REQUEST FastCGI records and ignores it
> if keep_conn is enabled and record has type FCGI_REQUEST_COMPLETE.

What makes you think that this is something to be fixed in nginx?
The FCGI_END_REQUEST record is clearly unexpected if there are no
requests in flight. You may want to focus on fixing the problem
in php instead.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Nginx patch for unexpected FASTCGI_END_REQUEST on php keep_conn + fastcgi_finish_request

Dmitry Saprykin 746 July 04, 2014 09:20AM

Re: Nginx patch for unexpected FASTCGI_END_REQUEST on php keep_conn + fastcgi_finish_request

Maxim Dounin 368 July 04, 2014 09:24AM

Re: Nginx patch for unexpected FASTCGI_END_REQUEST on php keep_conn + fastcgi_finish_request

Dmitry Saprykin 699 July 04, 2014 09:36AM

Re: Nginx patch for unexpected FASTCGI_END_REQUEST on php keep_conn + fastcgi_finish_request

Maxim Dounin 546 July 04, 2014 12:14PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 270
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready