瀏覽代碼

Update TcpConnection.php

walkor 6 年之前
父節點
當前提交
f615edc0a5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Connection/TcpConnection.php

+ 1 - 0
Connection/TcpConnection.php

@@ -952,6 +952,7 @@ class TcpConnection extends ConnectionInterface
                 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;