-
Notifications
You must be signed in to change notification settings - Fork 451
Unexpected EOF while reading 4 bytes from stream (no data) #135
Comments
@thienit5 you can try set broker version property 0.10.0
|
That happended to me when I had incorrectly set broker list property. |
That also happended to me that the error --"Message: Unexpected EOF while reading 4 bytes from stream (no data)" often stop my running php-code work,how to deal with it?? |
Also have this problem: Used versions: But also reproduced with: As workaround we using 3 times repeat of functions call. Full error output: in /var/www/XXXPROJECT/vendor/nmred/kafka-php/src/Kafka/SocketSync.php:311 Stack trace: |
has solution? |
after I try set broker version property 0.10.0,haven't seen the error,everything it's OK |
Also have this problem,has solution? |
$config = \Kafka\ProducerConfig::getInstance();
$config->setMetadataRefreshIntervalMs(10000);
$config->setMetadataBrokerList('host:port');
$config->setRequiredAck(1);
$config->setIsAsyn(false);
$config->setProduceInterval(500);
$config->setBrokerVersion('0.11.0.0');
$producer = new \Kafka\Producer();
$producer->setLogger($logger);
When I run a while I push error: Unexpected EOF while reading 4 bytes from stream (no data)
The text was updated successfully, but these errors were encountered: