redis总是被中断,产生致命错误 ErrorException: Redis::get(): Send of 58 bytes failed with errno=10054 远程主机强迫关闭了一个现有的连接。 in D:\net\vendor\workerman\workerman\Protocols\Http\Session\RedisSessionHandler.php:84
改 vendor/workerman/workerman/Protocols/Http/Session/RedisSessionHandler.php public function __construct($config) 方法里最后面加上
\Workerman\Timer::add(isset($config['ping']) ? $config['ping'] : 55, function () { $this->_redis->get('ping'); });