From 8bef56226bb6af77d03966ee0eeb3ae20ca4fbdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Oct 2020 17:31:50 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Kafka/Socket.php b/Kafka/Socket.php index caa8f5ab..571b810c 100644 --- a/Kafka/Socket.php +++ b/Kafka/Socket.php @@ -399,11 +399,11 @@ class Socket $bytesToWrite = strlen($this->writeBuffer); $bytesWritten = $this->stream->send($this->writeBuffer); - if ($bytesToWrite === $bytesWritten) { - \Amp\disable($this->writeWatcher); - } elseif ($bytesWritten >= 0) { - \Amp\enable($this->writeWatcher); - } +// if ($bytesToWrite === $bytesWritten) { +// \Amp\disable($this->writeWatcher); +// } elseif ($bytesWritten >= 0) { +// \Amp\enable($this->writeWatcher); +// } $this->writeBuffer = substr($this->writeBuffer, $bytesWritten); }