Skip to content

Commit

Permalink
fix read size limitation from a stream
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetmiss committed Jan 11, 2021
1 parent 2cefe45 commit f4989bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function send(CommandInterface $command): ResponseInterface
*/
public function read(): ResponseInterface
{
$message = stream_get_line($this->resource, 2048, "\r\n");
$message = explode("\r\n", fgets($this->resource))[0];
return new SonicResponse($message);
}

Expand Down

0 comments on commit f4989bf

Please sign in to comment.