Skip to content

Commit 9d7f16a

Browse files
Updated fread() function to stream_get_contents() to resolve timemout issue
1 parent 9f482df commit 9d7f16a

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)