title: Nginx uwsgi (104: Connection reset by peer) while reading response header from upstream
body: <p>Environment is Nginx + uwsgi.</p>
  
  <p>Getting a 502 bad gateway error from Nginx on certain GET requests. Seems to be related to the length of the URL. In our particular case, it was a long list of GET parameters. Shorten the GET parameters and no 502 error.</p>
  
  <p>From the nginx/error.log</p>
  
  <pre><code>[error] 22113#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.100, server: server.domain.com, request: "GET &lt;long_url_here&gt;"
  </code></pre>
  
  <p>No information in the uwsgi error log.</p>