we are using FreeBSD, nginx, php-fpm in our server for php application. Sometimes
kevent() reported about an closed connection (54: Connection reset by peer) while reading response header from upstream...
occured in log file and i get the "502 Bad Gateway" error. Simple php-fpm restart solves the problem. Any solution?