1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:18:58 +01:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Alexander Pankratov
ba4853bb34 Merge branch 'v8' into v8-tas 2024-10-31 11:27:25 +01:00
1eb71f25ca Bump to 8.3.5 2024-10-21 15:56:46 +00:00
bdea588d69 Set inactivity timeout 2024-10-21 10:24:44 +02:00
4 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.3.4';
public const RELEASE = '8.3.5';
/**
* We're not logged in.
*

View File

@ -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) {

View File

@ -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,

View File

@ -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