Browse Source

Update TcpConnection.php

walkor 5 years ago
parent
commit
ad7b0e7d37
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Connection/TcpConnection.php

+ 1 - 0
Connection/TcpConnection.php

@@ -646,6 +646,7 @@ class TcpConnection extends ConnectionInterface
                     $one_request_buffer = \substr($this->_recvBuffer, 0, $this->_currentPackageLength);
                     // Remove the current package from the receive buffer.
                     $this->_recvBuffer = \substr($this->_recvBuffer, $this->_currentPackageLength);
+                    $recv_len = \strlen($this->_recvBuffer);
                 }
                 // Reset the current packet length to 0.
                 $this->_currentPackageLength = 0;