Skip to content

Commit

Permalink
Update TcpConnection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored May 4, 2022
1 parent 94a433f commit 9d6c228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function baseRead($socket, $check_eof = true)
} else {
$this->bytesRead += \strlen($buffer);
if ($this->_recvBuffer === '') {
if (static::$_enableCache && !isset($requests[512]) && isset($requests[$buffer])) {
if (static::$_enableCache && !isset($buffer[512]) && isset($requests[$buffer])) {
++self::$statistics['total_request'];
$request = $requests[$buffer];
if ($request instanceof Request) {
Expand Down

0 comments on commit 9d6c228

Please sign in to comment.