title: uwsgi IOError: write error
body: <p>I have a problem with my nginx+uwsgi configuration for my django app, I keep getting this errors in the uwsgi error log:</p>
  <blockquote>
  <p>Wed Jan 13 15:26:04 2016 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 296] during POST /company/get_unpaid_invoices_chart/ (86.34.48.7)
  IOError: write error</p>
  <p>Wed Jan 13 15:26:20 2016 - uwsgi_response_write_headers_do(): Broken
  pipe [core/writer.c line 238] during GET
  /gestiune/print_pdf/nir/136194/ (89.122.255.186) IOError: write error</p>
  </blockquote>
  <p>I am not getting them for all the requests but I do get a couple of them each minute.
  I searched for it and I understand that this happens because nginx closes the connection to uwsgi by the time uwsgi wants to write the response.
  This looks strange because in my nginx configuration I have this:</p>
  <blockquote>
  <p>include uwsgi_params;</p>
  <p>uwsgi_pass unix:/home/project/django/sbo_cloud/site.sock;</p>
  <p>uwsgi_read_timeout 600;</p>
  <p>uwsgi_send_timeout 600;</p>
  <p>uwsgi_connect_timeout 60;</p>
  </blockquote>
  <p>I am certain that none of the requests for which the error appears has exceeds the 600 seconds timeout.
  Any idea why this would happen?</p>
  <p>Thanks</p>