Welcome! Log In Create A New Profile

Advanced

Re: Incomplete page by nginx -> fcgi -> php-fpm with keepalive

Maxim Dounin
January 31, 2013 06:56AM
Hello!

On Thu, Jan 31, 2013 at 04:22:48AM -0500, Ondra42 wrote:

> I have problem somewhere between nginx and php-fpm. When I use keep-alive
> connection for fastgcgi php-fpm, there is often problem with loading page.
> Page not completely loaded. I tried to debug using wireshark, and see that
> php-fpm send to nginx coplete reply, but nginx to client sent incoplete
> page. Size of incomplete page is defined by chunk size. For test, download
> http://kinohled.cz/bugreport.tar.gz and run ./showBug.sh . You will se:
>
> Run Nginx on port 9876
> Run php-fpm on port 6789
> Correct size of answer is 16172;
> keepalive on, size: 8002
> keepalive off, size: 16172
> Next test (1 of 5)-
> ...
>
> Tested on Debian Squeeze and many version of Nginx/PHP-FPM . Error shows on
> default Nginx/PHP-FPM version by Debian Squeeze by dotdeb.org .
>
> nginx/1.2.6
> PHP 5.3.21-1~dotdeb.0
>
> On Nginx error log:
>
> upstream sent unsupported FastCGI protocol version: 0 while reading
> upstream
>
> Any suggestion ?

Please try this patch:

http://mdounin.ru/temp/patch-nginx-fastcgi-keepalive.txt

--
Maxim Dounin
http://nginx.com/support.html

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

Incomplete page by nginx -> fcgi -> php-fpm with keepalive

Ondra42 January 31, 2013 04:22AM

Re: Incomplete page by nginx -> fcgi -> php-fpm with keepalive

Maxim Dounin January 31, 2013 06:56AM

Re: Incomplete page by nginx -> fcgi -> php-fpm with keepalive

Ondra42 January 31, 2013 07:31AM

Re: Incomplete page by nginx -> fcgi -> php-fpm with keepalive

zuborg March 13, 2013 09:49AM

Re: Incomplete page by nginx -> fcgi -> php-fpm with keepalive

Maxim Dounin March 13, 2013 10:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
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