title: Is nginx timeout or rails timeout
body: <p>I deployed rails app with nginx and passenger,there is a long running rails action, something like this:</p>
  
  <pre><code> def handler
    sleep 100
    respond_to do |format|
       format.json { render :json=&gt;{:success=&gt;true}}
    end
  end
  </code></pre>
  
  <p>However, the nginx error log print this message:</p>
  
  <pre><code>Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser. 
  </code></pre>
  
  <p>Obviously,this error don't called by click stop button. Maybe nginx timeout or rails time out or passenger timeout, how to solve this problem, is it possible be solved by configure file. Is there any help</p>