Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jan 9, 2023
1 parent 303d7f2 commit 956a5d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ public function baseWrite()
}
}
if ($this->_status === self::STATUS_CLOSING) {
if ($this->__streamSending) {
if ($this->context->streamSending) {
return true;
}
$this->destroy();
Expand Down
4 changes: 2 additions & 2 deletions src/Protocols/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public static function encode($response, TcpConnection $connection)
protected static function sendStream(TcpConnection $connection, $handler, $offset = 0, $length = 0)
{
$connection->bufferFull = false;
$connection->__streamSending = true;
$connection->context->streamSending = true;
if ($offset !== 0) {
\fseek($handler, $offset);
}
Expand All @@ -276,7 +276,7 @@ protected static function sendStream(TcpConnection $connection, $handler, $offse
if ($buffer === '' || $buffer === false) {
fclose($handler);
$connection->onBufferDrain = null;
$connection->__streamSending = false;
$connection->context->streamSending = false;
return;
}
$connection->send($buffer, true);
Expand Down

0 comments on commit 956a5d8

Please sign in to comment.