Philip Hofstetter
August 19, 2013 08:08AM
Hi,

I have a nginx (stock ubuntu config) as a reverse proxy in front of a
haproxy in front of 5 more nginx machines which use fastcgi to talk to
php-fpm.

My issue is with the frontend proxy and long-running, veeeeery
slowwwww requests.

The clients are very underpowered mobile barcode scanners using 2G GSM
connections. When they try to download 2.1 MB of data dynamically
generated by PHP on the back, backend, the Frontend will close the
connection after ~1MB has been downloaded (at ~2 KBytes/s).

I can reproduce the same behavior using curl (with --rate-limit 2K):

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1196k 0 1196k 0 343 2047 0 --:--:-- 0:09:58 --:--:-- 1888
curl: (56) Recv failure: Connection reset by peer

The access log on the frontend server lists a 200 status code but too
few transmitted bytes.

The error log (on info) shows

2013/08/19 14:03:36 [info] 32469#0: *1166 client timed out (110:
Connection timed out) while sending to client, client: xxx.xxx.xxx.xxx

Which is not true - it's showing that while curl (--rate-limit 2K) ist
still running.

Can you give me any pointers in how to debug/fix this?

Philip


--
Sensational AG
Giesshübelstrasse 62c, Postfach 1966, 8021 Zürich
Tel. +41 43 544 09 60, Mobile +41 79 341 01 99
info@sensational.ch, http://www.sensational.ch

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

nginx 1.4.1 - slow transfers / connection resets

Philip Hofstetter August 19, 2013 08:08AM

Re: nginx 1.4.1 - slow transfers / connection resets

Maxim Dounin August 19, 2013 08:18AM

RE: nginx 1.4.1 - slow transfers / connection resets

Lukas Tribus August 19, 2013 01:06PM

Re: nginx 1.4.1 - slow transfers / connection resets

Philip Hofstetter August 20, 2013 03:16AM

Re: nginx 1.4.1 - slow transfers / connection resets

Philip Hofstetter August 20, 2013 03:26AM

Re: nginx 1.4.1 - slow transfers / connection resets

Philip Hofstetter August 20, 2013 03:50AM

Re: nginx 1.4.1 - slow transfers / connection resets

Maxim Dounin August 20, 2013 07:28AM

Re: nginx 1.4.1 - slow transfers / connection resets

Philip Hofstetter August 20, 2013 09:16AM

Re: nginx 1.4.1 - slow transfers / connection resets

Maxim Dounin August 20, 2013 09:52AM

Re: nginx 1.4.1 - slow transfers / connection resets

Igor Sverkos August 20, 2013 03:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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