mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Merge pull request #647 from @wido
CLOUDSTACK-8640: Revert to AWS SDK 1.3.22 * pr/647: CLOUDSTACK-8640: Revert to AWS SDK 1.3.22 Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
commit
60633301ac
2
pom.xml
2
pom.xml
@ -85,7 +85,7 @@
|
||||
<org.springframework.version>3.2.12.RELEASE</org.springframework.version>
|
||||
<cs.mockito.version>1.9.5</cs.mockito.version>
|
||||
<cs.powermock.version>1.5.3</cs.powermock.version>
|
||||
<cs.aws.sdk.version>1.9.8</cs.aws.sdk.version>
|
||||
<cs.aws.sdk.version>1.3.22</cs.aws.sdk.version>
|
||||
<cs.lang.version>2.6</cs.lang.version>
|
||||
<cs.lang3.version>3.4</cs.lang3.version>
|
||||
<cs.commons-io.version>2.4</cs.commons-io.version>
|
||||
|
||||
@ -103,17 +103,19 @@ public final class S3Utils {
|
||||
}
|
||||
|
||||
if (clientOptions.getUseTCPKeepAlive() != null) {
|
||||
configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive());
|
||||
//configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive());
|
||||
LOGGER.debug("useTCPKeepAlive not supported by old AWS SDK");
|
||||
}
|
||||
|
||||
if (clientOptions.getConnectionTtl() != null) {
|
||||
configuration.setConnectionTTL(clientOptions.getConnectionTtl());
|
||||
//configuration.setConnectionTTL(clientOptions.getConnectionTtl());
|
||||
LOGGER.debug("connectionTtl not supported by old AWS SDK");
|
||||
}
|
||||
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
LOGGER.debug(format("Creating S3 client with configuration: [protocol: %1$s, connectionTimeOut: " + "%2$s, maxErrorRetry: %3$s, socketTimeout: %4$s, useTCPKeepAlive: %5$s, connectionTtl: %6$s]",
|
||||
configuration.getProtocol(), configuration.getConnectionTimeout(), configuration.getMaxErrorRetry(), configuration.getSocketTimeout(),
|
||||
configuration.useTcpKeepAlive(), configuration.getConnectionTTL()));
|
||||
-1, -1));
|
||||
}
|
||||
|
||||
final AmazonS3Client client = new AmazonS3Client(credentials, configuration);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user