changeset 246:6f6e2f981606 default tip

MaxConnections
author Alain Mazy <am@orthanc.team>
date Thu, 16 Jul 2026 16:22:07 +0200
parents 760a192747f9
children
files Aws/AwsS3StoragePlugin.cpp NEWS README.md
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Aws/AwsS3StoragePlugin.cpp	Mon Jun 22 16:35:01 2026 +0200
+++ b/Aws/AwsS3StoragePlugin.cpp	Thu Jul 16 16:22:07 2026 +0200
@@ -546,6 +546,7 @@
   pluginSection.GetUnsignedIntegerValue("ConnectionTimeout", connectTimeout); // from v 2.5.1+, both ConnectTimeout and ConnectionTimeout are supported
 
   const unsigned int requestTimeout = pluginSection.GetUnsignedIntegerValue("RequestTimeout", 1200);
+  const unsigned int maxConnections = pluginSection.GetUnsignedIntegerValue("MaxConnections", 25);
   const bool virtualAddressing = pluginSection.GetBooleanValue("VirtualAddressing", true);
   const bool enableAwsSdkLogs = pluginSection.GetBooleanValue("EnableAwsSdkLogs", false);
   const std::string caFile = orthancConfig.GetStringValue("HttpsCACertificates", "");
@@ -576,6 +577,7 @@
     configuration.connectTimeoutMs = connectTimeout * 1000;
     configuration.requestTimeoutMs  = requestTimeout * 1000;
     configuration.httpRequestTimeoutMs = requestTimeout * 1000;
+    configuration.maxConnections = maxConnections;
 
     if (!endpoint.empty())
     {
--- a/NEWS	Mon Jun 22 16:35:01 2026 +0200
+++ b/NEWS	Thu Jul 16 16:22:07 2026 +0200
@@ -1,3 +1,11 @@
+Pending changes in the mainline
+===============================
+
+* AWS plugin:
+ * New configuration "MaxConnections" to define the size of the HTTP connection pool used
+   by the AWS HTTP Client (default is 25).
+   
+
 2026-06-22 - v 2.5.3
 ====================
 
--- a/README.md	Mon Jun 22 16:35:01 2026 +0200
+++ b/README.md	Thu Jul 16 16:22:07 2026 +0200
@@ -131,6 +131,7 @@
         "Endpoint": "",                 // optional: custom endpoint
         "ConnectionTimeout": 30,        // optional: connection timeout in seconds
         "RequestTimeout": 1200,         // optional: request timeout in seconds (max time to upload/download a file)
+        "MaxConnections": 25,           // optional: number of HTTP connections in the pool used by the AWS HTTP client.
         "RootPath": "",                 // optional: folder in which files are stored (ex: my/path/to/myfolder)
         "StorageEncryption" : {...},    // optional
         "StorageStructure" : "flat",    // optional