From 1510adeca9039db232785d9b9fd9d0498e80010f Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 11 Nov 2022 14:54:34 +0100 Subject: [PATCH] Fix retries for web disk Signed-off-by: Azat Khuzhin --- src/Disks/ObjectStorages/Web/WebObjectStorage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Disks/ObjectStorages/Web/WebObjectStorage.cpp b/src/Disks/ObjectStorages/Web/WebObjectStorage.cpp index b4efbb9d3c9..ecd8b0b4501 100644 --- a/src/Disks/ObjectStorages/Web/WebObjectStorage.cpp +++ b/src/Disks/ObjectStorages/Web/WebObjectStorage.cpp @@ -46,7 +46,10 @@ void WebObjectStorage::initialize(const String & uri_path) const Poco::Net::HTTPRequest::HTTP_GET, ReadWriteBufferFromHTTP::OutStreamCallback(), ConnectionTimeouts::getHTTPTimeouts(getContext()), - credentials); + credentials, + /* max_redirects= */ 0, + /* buffer_size_= */ DBMS_DEFAULT_BUFFER_SIZE, + getContext()->getReadSettings()); String file_name; FileData file_data{};