Gateway timeout: the gateway did not receive a timely response from the upstream server

I send 300 newsletters at a time with a URL, after 2 minutes it is updated again to send the next 300 and so on.

But I get this error:

Gateway timeout

The gateway did not receive a timely response from the upstream server or application.

Also, if you are trying to execute the 404 Not Found error, use the ErrorDocument request handler.

I set the maximum execution to 3600

ini_set('max_execution_time', 3600); 

But I regularly get the same error. Please help me find a solution.

+7
php apache cloud cloudflare
source share
2 answers

"Also, when trying to use ErrorDocument to process the request, a 404 Not Found error was detected.

This indicates that the server is not configured correctly.

It is impossible to understand why you think this is CloudFlare problem right now (from the tag). Do you get a CloudFlare error message ?

0
source share

I ran into the same problem and I used ini_set('default_socket_timeout', 6000); to fix it. http://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout

0
source share

All Articles