diff --git a/src/MTProtoTools/Files.php b/src/MTProtoTools/Files.php index 8159b2c6c..9d8603a3c 100644 --- a/src/MTProtoTools/Files.php +++ b/src/MTProtoTools/Files.php @@ -208,6 +208,7 @@ trait Files } $request = new Request($url); $request->setTransferTimeout(INF); + $request->setInactivityTimeout(INF); $request->setBodySizeLimit(512 * 1024 * 8000); $response = $this->datacenter->getHTTPClient()->request($request, $cancellation); if (($status = $response->getStatus()) !== 200) { diff --git a/src/MTProtoTools/FilesAbstraction.php b/src/MTProtoTools/FilesAbstraction.php index 412f25c36..28a7debcd 100644 --- a/src/MTProtoTools/FilesAbstraction.php +++ b/src/MTProtoTools/FilesAbstraction.php @@ -83,6 +83,7 @@ trait FilesAbstraction self::$client ??= HttpClientBuilder::buildDefault(); $request = new Request($stream->url); $request->setTransferTimeout(INF); + $request->setInactivityTimeout(INF); $request->setBodySizeLimit(512 * 1024 * 8000); $response = self::$client->request( $request, diff --git a/src/Tools.php b/src/Tools.php index 2ca325583..c16c2031a 100644 --- a/src/Tools.php +++ b/src/Tools.php @@ -644,6 +644,7 @@ abstract class Tools extends AsyncTools self::$client ??= HttpClientBuilder::buildDefault(); $request = new Request($stream->url); $request->setTransferTimeout(INF); + $request->setInactivityTimeout(INF); $stream = self::$client->request( $request, $cancellation