weiboad/kafka-php

CommonSocket的请求接收超时时间需要值大一点

Opened this issue · 0 comments

protected $sendTimeoutSec = 0;
/**
* Send timeout in microseconds.
*
* @var int
/
protected $sendTimeoutUsec = 100000;
/
*
* Recv timeout in seconds
*
* @var int
/
protected $recvTimeoutSec = 0;
/
*
* Recv timeout in microseconds
*
* @var int
*/
protected $recvTimeoutUsec = 750000;

这几个值应该默认设置高点 否着容易报 Could not read 4 bytes from stream (not readable 或
Could not write 4 bytes from stream 错误