5

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?

Community
  • 1
  • 1
Leon van der Veen
  • 1,652
  • 11
  • 42
  • 60

1 Answers1

6

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.

Narcis Radu
  • 2,519
  • 22
  • 33