Skip to content

Commit 6063330

Browse files
committed
Merge pull request apache#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>
2 parents c5ebb68 + c32656a commit 6063330

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<org.springframework.version>3.2.12.RELEASE</org.springframework.version>
8686
<cs.mockito.version>1.9.5</cs.mockito.version>
8787
<cs.powermock.version>1.5.3</cs.powermock.version>
88-
<cs.aws.sdk.version>1.9.8</cs.aws.sdk.version>
88+
<cs.aws.sdk.version>1.3.22</cs.aws.sdk.version>
8989
<cs.lang.version>2.6</cs.lang.version>
9090
<cs.lang3.version>3.4</cs.lang3.version>
9191
<cs.commons-io.version>2.4</cs.commons-io.version>

utils/src/com/cloud/utils/S3Utils.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,19 @@ public static AmazonS3 acquireClient(final ClientOptions clientOptions) {
103103
}
104104

105105
if (clientOptions.getUseTCPKeepAlive() != null) {
106-
configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive());
106+
//configuration.setUseTcpKeepAlive(clientOptions.getUseTCPKeepAlive());
107+
LOGGER.debug("useTCPKeepAlive not supported by old AWS SDK");
107108
}
108109

109110
if (clientOptions.getConnectionTtl() != null) {
110-
configuration.setConnectionTTL(clientOptions.getConnectionTtl());
111+
//configuration.setConnectionTTL(clientOptions.getConnectionTtl());
112+
LOGGER.debug("connectionTtl not supported by old AWS SDK");
111113
}
112114

113115
if (LOGGER.isDebugEnabled()) {
114116
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]",
115117
configuration.getProtocol(), configuration.getConnectionTimeout(), configuration.getMaxErrorRetry(), configuration.getSocketTimeout(),
116-
configuration.useTcpKeepAlive(), configuration.getConnectionTTL()));
118+
-1, -1));
117119
}
118120

119121
final AmazonS3Client client = new AmazonS3Client(credentials, configuration);

0 commit comments

Comments
 (0)