Skip to content

Commit ad7b0e7

Browse files
authored
Update TcpConnection.php
1 parent c3ddc4b commit ad7b0e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Connection/TcpConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ public function baseRead($socket, $check_eof = true)
646646
$one_request_buffer = \substr($this->_recvBuffer, 0, $this->_currentPackageLength);
647647
// Remove the current package from the receive buffer.
648648
$this->_recvBuffer = \substr($this->_recvBuffer, $this->_currentPackageLength);
649+
$recv_len = \strlen($this->_recvBuffer);
649650
}
650651
// Reset the current packet length to 0.
651652
$this->_currentPackageLength = 0;

0 commit comments

Comments
 (0)