From c61a1f4e3db091385bc73494c5f2a8fea56a8995 Mon Sep 17 00:00:00 2001 From: Stefano Ortolani Date: Mon, 15 Jul 2024 12:54:01 +0100 Subject: [PATCH] ARGH --- core/files/CurlDownloader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/files/CurlDownloader.php b/core/files/CurlDownloader.php index 21dde2b..e76c212 100644 --- a/core/files/CurlDownloader.php +++ b/core/files/CurlDownloader.php @@ -166,7 +166,7 @@ private function initDownload(callable $resolve, callable $reject, string $origi } $curlHandle = curl_init(); -$headerHandle = fopen('php://temp/maxmemory:32768', 'w+b'); +$headerHandle = fopen('php://temp/maxmemory:65536', 'w+b'); if (false === $headerHandle) { throw new \RuntimeException('Failed to open a temp stream to store curl headers'); } @@ -174,7 +174,7 @@ private function initDownload(callable $resolve, callable $reject, string $origi if ($copyTo !== null) { $bodyTarget = $copyTo.'~'; } else { -$bodyTarget = 'php://temp/maxmemory:524288'; +$bodyTarget = 'php://temp/maxmemory:1524288'; } $errorMessage = ''; @@ -202,7 +202,7 @@ private function initDownload(callable $resolve, callable $reject, string $origi curl_setopt($curlHandle, CURLOPT_FILE, $bodyHandle); curl_setopt($curlHandle, CURLOPT_ENCODING, ""); curl_setopt($curlHandle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); -curl_setopt($curlHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_1); +# curl_setopt($curlHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_1); if ($attributes['ipResolve'] === 4) { curl_setopt($curlHandle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);