connection handling for php-fpm