Skip to content

Commit 0e8ad43

Browse files
committed
Disable more initializations
1 parent dbeb6b6 commit 0e8ad43

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/IO/S3/Client.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,9 +918,17 @@ ClientFactory::ClientFactory()
918918
aws_options.cryptoOptions = Aws::CryptoOptions{};
919919
aws_options.cryptoOptions.initAndCleanupOpenSSL = false;
920920

921+
aws_options.httpOptions = Aws::HttpOptions{};
922+
aws_options.httpOptions.initAndCleanupCurl = false;
923+
aws_options.httpOptions.httpClientFactory_create_fn = []() { return std::make_shared<PocoHTTPClientFactory>(); };
924+
925+
aws_options.loggingOptions = Aws::LoggingOptions{};
926+
aws_options.loggingOptions.logger_create_fn = []() { return std::make_shared<AWSLogger>(false); };
927+
928+
aws_options.ioOptions = Aws::IoOptions{};
929+
aws_options.ioOptions.tlsConnectionOptions_create_fn = []() { return nullptr; };
930+
921931
Aws::InitAPI(aws_options);
922-
Aws::Utils::Logging::InitializeAWSLogging(std::make_shared<AWSLogger>(false));
923-
Aws::Http::SetHttpClientFactory(std::make_shared<PocoHTTPClientFactory>());
924932
}
925933

926934
ClientFactory::~ClientFactory()

0 commit comments

Comments
 (0)