Alex Rivera | Logout

nginx errors readv() and recv() failed

Asked 2009-11-14T04:44:09.117
29

I use nginx along with fastcgi. I see a lot of the following errors in the error logs

readv() failed (104: Connection reset by peer) while reading upstream and recv() failed (104: Connection reset by peer) while reading response header from upstream

I don't see any problem using the application. Are these errors serious or how to get rid of them.

Edit
Report

1 Answer

2

Answer # 2. Interestingly enough fastcgi_read_timeout 5m; fixed one vhost for me. However I was still getting the error in another vhost, just by running phpinfo(); What fixed this for me was by copying over a default production php.ini file and adding the config I needed into it. What I had was an old copy of my php.ini from the previous PHP install. Once I put the default php.ini from 'shared' and just added in the extensions and config I needed, this solved my problem and no longer did I have nginx errors readv() and recv() failed.

I hope 1 of these 2 fixes helps someone.

answered 2011-12-07T19:26:26.387

Your Answer