Skip to content

Commit 3648841

Browse files
use only thread for async s3 interaction (#1668)
1 parent f2465cb commit 3648841

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ydb/core/wrappers/s3_storage_config.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/stream/PreallocatedStreamBuf.h>
66
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/stream/ResponseStream.h>
77
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/Aws.h>
8+
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/threading/Executor.h>
9+
810
#include <contrib/libs/curl/include/curl/curl.h>
911
#include <ydb/library/actors/core/actorsystem.h>
1012
#include <ydb/library/actors/core/log.h>
@@ -105,6 +107,7 @@ Aws::Client::ClientConfiguration TS3ExternalStorageConfig::ConfigFromSettings(co
105107
if (settings.HasHttpRequestTimeoutMs()) {
106108
config.httpRequestTimeoutMs = settings.GetHttpRequestTimeoutMs();
107109
}
110+
config.executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(1);
108111
config.enableTcpKeepAlive = true;
109112
// config.lowSpeedLimit = 0;
110113
config.maxConnections = 5;

0 commit comments

Comments
 (0)