gordalina / cachetool

CLI App and library to manage apc & opcache.
https://gordalina.github.io/cachetool
MIT License
1.69k stars 155 forks source link

Php7.4 Stream got blocked, or terminated. #198

Open futureisrise opened 2 years ago

futureisrise commented 2 years ago

Hi, refering to https://github.com/gordalina/cachetool/issues/188 Still have same issue with such config pool:

# php cachetool.phar opcache:reset --fcgi=/run/php/php7.4-fpm.sock

In FastCGI.php line 143:

  FastCGI error: Stream got blocked, or terminated. (/run/php/php7.4-fpm.sock)

In Socket.php line 553:

  Stream got blocked, or terminated.

opcache:reset
[www]
user = www-data
group = www-data

listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666

php -v

PHP 7.4.27 (cli) (built: Dec 20 2021 21:28:15) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies with ddtrace v0.67.0, Copyright Datadog, by Datadog

gordalina commented 2 years ago

Can you provide more information about what's happening in the system? Did you perform a deployment, if so, what does the deployment entail?

thorewi commented 2 years ago

I just want to say that it happens to me too, probably when old thread is killed because of "pm.max_requests" settings and new thread is started?