Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit cdd966e

Browse files
authored
Merge pull request #544 from Azure/legacy-dev
Legacy dev
2 parents fa993ec + 82e86f4 commit cdd966e

File tree

8 files changed

+16
-6
lines changed

8 files changed

+16
-6
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020.05.04 Version 8.6.4
2+
* Converted the httpsKeepAliveSocketFactory into a singleton for performance improvements.
3+
14
2020.03.30 Version 8.6.3
25
* Added the commitWriteOnInputStreamException option to BlobRequestOptions, which will allow the user to configure whether any data staged through openWrite when using the upload(InputStream, long) method will be committed upon failures in the InputStream.
36
* Disabled httpsKeepAlive by default as it can introduce some perf issues.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3939
<dependency>
4040
<groupId>com.microsoft.azure</groupId>
4141
<artifactId>azure-storage</artifactId>
42-
<version>8.6.3</version>
42+
<version>8.6.4</version>
4343
</dependency>
4444
```
4545

microsoft-azure-storage-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.microsoft.azure</groupId>
2828
<artifactId>azure-storage</artifactId>
29-
<version>8.6.3</version>
29+
<version>8.6.4</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

microsoft-azure-storage-samples/src/com/microsoft/azure/storage/logging/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.microsoft.azure</groupId>
2828
<artifactId>azure-storage</artifactId>
29-
<version>8.6.3</version>
29+
<version>8.6.4</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

microsoft-azure-storage/src/com/microsoft/azure/storage/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ public static class HeaderConstants {
765765
/**
766766
* Specifies the value to use for UserAgent header.
767767
*/
768-
public static final String USER_AGENT_VERSION = "8.6.3";
768+
public static final String USER_AGENT_VERSION = "8.6.4";
769769

770770
/**
771771
* The default type for content-type and accept

microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected PasswordAuthentication getPasswordAuthentication() {
230230
*/
231231
if (retConnection instanceof HttpsURLConnection && !options.disableHttpsSocketKeepAlive()) {
232232
HttpsURLConnection httpsConnection = ((HttpsURLConnection) retConnection);
233-
httpsConnection.setSSLSocketFactory(new KeepAliveSocketFactory(httpsConnection.getSSLSocketFactory()));
233+
httpsConnection.setSSLSocketFactory(KeepAliveSocketFactory.getInstance());
234234
}
235235

236236
/*

microsoft-azure-storage/src/com/microsoft/azure/storage/core/KeepAliveSocketFactory.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
package com.microsoft.azure.storage.core;
1717

18+
import javax.net.ssl.HttpsURLConnection;
1819
import javax.net.ssl.SSLSocketFactory;
1920
import java.io.IOException;
2021
import java.net.InetAddress;
@@ -39,10 +40,16 @@
3940
public class KeepAliveSocketFactory extends SSLSocketFactory {
4041
private SSLSocketFactory delegate;
4142

43+
private static final KeepAliveSocketFactory singletonKeepAliveSocketFactory = new KeepAliveSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());
44+
4245
KeepAliveSocketFactory(SSLSocketFactory delegate) {
4346
this.delegate = delegate;
4447
}
4548

49+
public static KeepAliveSocketFactory getInstance() {
50+
return singletonKeepAliveSocketFactory;
51+
}
52+
4653
@Override
4754
public String[] getDefaultCipherSuites() {
4855
return delegate.getDefaultCipherSuites();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111
<groupId>com.microsoft.azure</groupId>
1212
<artifactId>azure-storage</artifactId>
13-
<version>8.6.3</version>
13+
<version>8.6.4</version>
1414
<packaging>jar</packaging>
1515

1616
<name>Microsoft Azure Storage Client SDK</name>

0 commit comments

Comments
 (0)