Skip to content

Commit

Permalink
MFH
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed May 1, 2023
2 parents 47424d3 + 4827e65 commit 0c782b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/it/php/web/unittest/TestingServer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use lang\Throwable;
use peer\ServerSocket;
use peer\server\AsyncServer;
use test\Assert;
use util\cmd\Console;
use web\{Environment, Logging};
use xp\web\srv\HttpProtocol;
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/xp/web/srv/Input.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function consume($limit= 16384) {

// If we instantly get an EOF while reading, it's either a preconnect
// or a kept-alive socket being closed.
if ('' === ($this->buffer= $this->socket->readBinary())) {
if ('' === ($this->buffer= $this->socket->read())) {
return $this->kind= self::CLOSE;
}

Expand Down

0 comments on commit 0c782b3

Please sign in to comment.