Skip to content

Commit 409475a

Browse files
Merge pull request #46 from jonathan-rowley/fread_fix
Updated fread() function to stream_get_contents() to resolve timemout…
2 parents 9f482df + 9d7f16a commit 409475a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/StreamSocket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function write(string $buffer)
9292
*/
9393
public function read(int $length = 2048): string
9494
{
95-
$res = fread($this->stream, $length);
95+
$res = stream_get_contents($this->stream, $length);
9696
if (empty($res))
9797
throw new ConnectException('Read error');
9898

0 commit comments

Comments
 (0)