diff --git a/Connection/TcpConnection.php b/Connection/TcpConnection.php index b85c6e69a..3f5e732d4 100644 --- a/Connection/TcpConnection.php +++ b/Connection/TcpConnection.php @@ -952,6 +952,7 @@ public function destroy() exit(250); } } + $this->_sendBuffer = $this->_recvBuffer = ''; if ($this->_status === self::STATUS_CLOSED) { // Cleaning up the callback to avoid memory leaks. $this->onMessage = $this->onClose = $this->onError = $this->onBufferFull = $this->onBufferDrain = null;