title: 110: Connection timed out (Nginx/Gunicorn)
body: <p>I'm running django on gunicorn+nginx. I'm facing a problem with file uploads. Actually uploads are working fine but gunicorn times out thus causing this in nginx:</p>
  
  <pre><code>2011/07/25 12:13:47 [error] 15169#0: *2317 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP-ADDRESS, server: SERVER, request: "GET /photos/events/event/25 HTTP/1.1", upstream: "http://127.0.0.1:29000/photos/events/event/25", host: "HOST", referrer: "REFERER_ADDRESS"
  </code></pre>
  
  <p>If I refresh the page, I can see all the photos are uploaded just fine. The problem is that it causes a timeout thus giving the impression that upload did not work.</p>
  
  <p>here is my gunicorn conf:</p>
  
  <pre><code>bind = "127.0.0.1:29000"
  logfile = "/path/to/logs/gunicorn.log"
  workers = 3
  </code></pre>
  
  <p>I tried changing timeout but it didn't work.</p>