I have a PHP web page which load a lot of files (1412 request are to be processed)
If I load the page for the first time there are no problems. Reloading the page cause the error 502 for the last 182 requests.
I used php-cgi for processing the php files.
If I use php-fpm all seem to work well.