Anatoly Mikhailov
February 13, 2013 11:32AM
> I'm struggling to find the source of a timeout. I am running Nginx (1.2.6),
> Passenger 3.0.18, and Rails 3.2.11. On serving one long running request, I
> find the results (CSV file) truncated after being returned from the client.
> The Rails application however continues to serve up the data until complete,
> at which time it reports:
>
> Couldn't forward the HTTP response back to the HTTP client: It seems the
> user clicked on the 'Stop' button in his browser.
>
> Nginx access.log however reports a 200 for the request.
>
> Some things I have tried:
> 1) I modified the Nginx read/send timeouts in the Passenger gem
> (ext/nginx/Configuration.c) and recompiled, with no impact.
> 2) I ran a test of bypassing Nginx/Passenger by going direct to my app
> running in Unicorn, and it serves up the result fine. I then took Passenger
> out of the equation by configuring Nginx to pass the requests to Unicorn,
> and the truncated result is back again.
> 3) I've played with the Nginx keepalive_timeout, proxy_read_timeout,
> proxy_send_timeout and send_timeout - all with no impact.
>
> Any thoughts/advice would be much appreciated.
>
> Joe
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236201,236201#msg-236201
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

It happened for us many times, there is only one option - upstream.
It can be Unicorn/PassengerStandalone/whatever.

We spent a lot of time debugging Nginx, so there is no real solution
for passenger built-in module.


Anatoly

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

Timeout serving large requests

BrindleFly February 13, 2013 11:19AM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 11:32AM

Re: Timeout serving large requests

Harold Sinclair February 13, 2013 11:40AM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 11:42AM

Re: Timeout serving large requests

BrindleFly February 13, 2013 11:50AM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 12:00PM

Re: Timeout serving large requests

BrindleFly February 13, 2013 12:11PM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 12:18PM

Re: Timeout serving large requests

BrindleFly February 13, 2013 12:40PM

Re: Timeout serving large requests

FooBarWidget September 19, 2013 05:53AM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 02:50PM

Re: Timeout serving large requests

Anatoly Mikhailov February 13, 2013 11:42AM

Re: Timeout serving large requests

FooBarWidget September 19, 2013 05:59AM

Re: Timeout serving large requests

BrindleFly February 13, 2013 11:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready