Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx 504 gateway timeout after 60 seconds [duplicate]

Tags:

php

nginx

fastcgi

Possible Duplicate:
How do I prevent a Gateway Timeout with Nginx

I'm using an existing SOAP API for importing data via XML. Sometimes while the XML is too large I get a 504 gateway timeout after 60 seconds.

I've tried to set fastcgi_read_timeout to 300 in the nginx.conf but it doesnt work. I've changed maximum_execution_time to 3600

Somebody an idea how I can change the timeout?

like image 700
Leon van der Veen Avatar asked Jan 18 '13 13:01

Leon van der Veen


1 Answers

You need to setup send_timeout because this specifies the response timeout to the client.

send_timeout 300

I think this is the case because send_timeout applies to client-read operations which is exactly what you are trying to do.

like image 104
Narcis Radu Avatar answered Nov 03 '22 00:11

Narcis Radu