Welcome! Log In Create A New Profile

Advanced

Re: debugging 504 Gateway Time-out

Francis Daly
August 15, 2016 04:08AM
On Sun, Aug 14, 2016 at 08:03:21PM -0400, Larry Martell wrote:
> On Tue, Aug 9, 2016 at 10:35 PM, Richard Stanway
> <r1ch+nginx@teamliquid.net> wrote:

Hi there,

> I have some requests that can take a long time to return - the users
> can request huge amount of data to be pulled from very large database
> tables with complex filters. But what I don't understand it how the
> nginx timeout works. My config file has this:
>
> proxy_read_timeout 600;
> proxy_connect_timeout 600;
> proxy_send_timeout 600;
> send_timeout 600;
>
> That's 10 minutes, right? But I get the 504 response before 10 minutes
> have passed since the request is sent. Why is that?

The documentation for each of those directives can be found at urls of
the form http://nginx.org/r/proxy_read_timeout

Most likely, the proxy_* ones are not used because you do not have a
matching proxy_pass.

You use uwsgi_pass. So investigate directives like uwsgi_read_timeout,
at http://nginx.org/r/uwsgi_read_timeout

Cheers,

f
--
Francis Daly francis@daoine.org

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

debugging 504 Gateway Time-out

Larry Martell August 09, 2016 05:12PM

Re: debugging 504 Gateway Time-out

Richard Stanway August 09, 2016 10:38PM

Re: debugging 504 Gateway Time-out

Larry Martell August 14, 2016 08:06PM

Re: debugging 504 Gateway Time-out

Francis Daly August 15, 2016 04:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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