Gin
Gin
是因为kafka收回了空闲的连接,而swoole这时候还没对连接销毁关闭,这phpkafka没有对connections.max.idle.ms进行支持,这时候你可以重写longlang\phpkafka\Client\SwooleClient 在方法startRecvCo的Expection加入一个判断当出现这个错误的时候把当前的无用连接给销毁 ` private function startRecvCo(): void { $this->coRecvRunning = true; $this->recvCoId = true; $this->recvCoId = Coroutine::create(function () { while ($this->coRecvRunning) { try { $data = $this->socket->recv(4, -1); if (''...
这东西就是注册注解和切面
cp your bash_profile here
you should run proxy to accelerate your network or you could download the offline package from pecl to normal install instead in pod
这个关于Server类直接查看hyperf的autoload下的server配置就好,你的type应该引用的是CoroutineServer 去掉或者改成Server就好了