title: Gateway Time-out:The gateway did not receive a timely response from the upstream server
body: <p>I am sending 300 newsletter at a time with a url, after 2 min it refresh itself again to send next 300 at so on.</p>
  
  <p>But I am getting this error:</p>
  
  <blockquote>
    <p>Gateway Time-out</p>
    
    <p>The gateway did not receive a timely response from the upstream server
    or application.</p>
    
    <p>Additionally, a 404 Not Found error was encountered while trying to
    use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>I have set max execution to 3600</p>
  
  <pre><code>ini_set('max_execution_time', 3600);
  </code></pre>
  
  <p>But I am regularly getting same error. Please help me to find out the solution.</p>