Explorar el Código

Update TcpConnection.php

walkor hace 5 años
padre
commit
2416fe3db4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;