pulsar-client-php icon indicating copy to clipboard operation
pulsar-client-php copied to clipboard

write data of close socket

Open chenmingjian123 opened this issue 1 year ago • 2 comments

用supervisor维护常驻进程,在正常消费一段时间后,会报这个错误而结束进程

环境:php8.2,laravel 10.8 使用包版本:v1.2.2

` Pulsar\Exception\IOException

write data of close socket

at vendor/ikilobyte/pulsar-client-php/src/IO/StreamIO.php:123 119▕ } 120▕ 121▕ $size = @fwrite($this->socket, $buffer); 122▕ if ($size === false) { ➜ 123▕ throw new IOException('write data of close socket'); 124▕ } 125▕ 126▕ return $this; 127▕ }

  +3 vendor frames 

4 app/Console/PulsarConsumers/DbChangeWatcher2Command.php:62 Pulsar\Consumer::receive() +12 vendor frames

17 artisan:35 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

`

chenmingjian123 avatar Nov 19 '23 10:11 chenmingjian123

@chenmingjian123 你看下是不是和这个一样,https://github.com/ikilobyte/pulsar-client-php/issues/1

ikilobyte avatar Nov 22 '23 05:11 ikilobyte

不一样的,我们不在swoole环境,是用supervisor维护的进程

chenmingjian123 avatar Dec 26 '23 06:12 chenmingjian123