Nginx reports "readv() failed (104: Connection reset by peer)"

  
                  

This article will introduce you to the problem of using nginx error \\"readv() failed (104: Connection reset by peer)\\" error.

Error Tips

[error] readv() failed (104: Connection reset by peer) while reading upstream, client: xxxx, server: host.tld, request: "POST /script .php, ...

Solution

Set the value of this parameter to 600 in php-fpm.conf:

request_terminate_timeout = 600

Copyright © Windows knowledge All Rights Reserved