瀏覽代碼

Update TcpConnection.php

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

+ 2 - 0
Connection/TcpConnection.php

@@ -971,6 +971,8 @@ class TcpConnection extends ConnectionInterface
             }
         }
         $this->_sendBuffer = $this->_recvBuffer = '';
+        $this->_currentPackageLength = 0;
+        $this->_isPaused = $this->_sslHandshakeCompleted = false;
         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;