title: Getting 500 Internal Server Error, readv() failed (104: Connection reset by peer) while reading upstream
body: <p>I'm receiving an HTTP 500 (Internal Server Error) every X calls. I'm not having any type of high CPU load (it's about 5%). I can see this error in the log when it happens:</p>
  
  <p>In /var/log/nginx/error.log</p>
  
  <pre><code>readv() failed (104: Connection reset by peer) while reading upstream
  </code></pre>
  
  <p>In /var/log/php5-fpm.log</p>
  
  <pre><code>Mar 10 07:21:57.740683 [WARNING] [pool www] child 9413 exited with code 1 after 1117.708602 seconds from start
  Mar 10 07:21:57.743140 [NOTICE] [pool www] child 9925 started
  </code></pre>
  
  <p>Does anyone know what could be happening and how to resolve this situation?</p>