Skip to content

Commit 325c9fc

Browse files
Merge pull request #6142 from nb-ohad/5.5-ohad
Backport to 5.5: Add proper agent selection to block_store_s3 backed by aws endpoint
2 parents 3ff3e13 + 1640cf9 commit 325c9fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/agent/block_store_services/block_store_s3.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ class BlockStoreS3 extends BlockStoreBase {
3838
secretAccessKey: this.cloud_info.access_keys.secret_key.unwrap(),
3939
s3ForcePathStyle: true,
4040
signatureVersion: cloud_utils.get_s3_endpoint_signature_ver(endpoint, this.cloud_info.auth_method),
41-
region: DEFAULT_REGION
41+
region: DEFAULT_REGION,
42+
httpOptions: {
43+
agent: http_utils.get_default_agent(endpoint)
44+
}
4245
});
4346
} else {
4447
this.disable_delegation = config.EXPERIMENTAL_DISABLE_S3_COMPATIBLE_DELEGATION[this.cloud_info.endpoint_type] ||

0 commit comments

Comments
 (0)