From c752afc08f474c8000e4d1dc6e69391095cbb234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Oct 2020 17:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kafka/Socket.php b/Kafka/Socket.php index 4bea1f86..9ec92300 100644 --- a/Kafka/Socket.php +++ b/Kafka/Socket.php @@ -247,7 +247,7 @@ class Socket do { try { if (!$this->isSocketDead($this->stream)) { - $newData = @fread($this->stream, self::READ_MAX_LEN); + $newData = $this->stream->recv(self::READ_MAX_LEN); } else { $this->reconnect(); return;