Skip to content

Commit 8123480

Browse files
committed
added some more clientConfigs for concurrency
1 parent 99f8e41 commit 8123480

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/unsuck/unsuck.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ inline std::shared_ptr<Aws::S3::S3Client> getS3Client() {
385385
clientConfig.endpointOverride = env_p;
386386
}
387387

388+
clientConfig.requestTimeoutMs = 3000;
389+
clientConfig.connectTimeoutMs = 1000;
390+
clientConfig.maxConnections = 25; // Increase for higher concurrency
391+
clientConfig.enableTcpKeepAlive = true;
392+
388393
bool usePathStyle = false; // Default to virtual-style addressing
389394
if (const char* env_p = std::getenv("AWS_USE_PATH_STYLE")) {
390395
std::string env_value(env_p);

0 commit comments

Comments
 (0)