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

Commit

Permalink
Merge pull request #544 from Azure/legacy-dev
Browse files Browse the repository at this point in the history
Legacy dev
  • Loading branch information
rickle-msft authored May 4, 2020
2 parents fa993ec + 82e86f4 commit cdd966e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020.05.04 Version 8.6.4
* Converted the httpsKeepAliveSocketFactory into a singleton for performance improvements.

2020.03.30 Version 8.6.3
* 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.
* Disabled httpsKeepAlive by default as it can introduce some perf issues.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.6.3</version>
<version>8.6.4</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion microsoft-azure-storage-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.6.3</version>
<version>8.6.4</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.6.3</version>
<version>8.6.4</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ public static class HeaderConstants {
/**
* Specifies the value to use for UserAgent header.
*/
public static final String USER_AGENT_VERSION = "8.6.3";
public static final String USER_AGENT_VERSION = "8.6.4";

/**
* The default type for content-type and accept
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected PasswordAuthentication getPasswordAuthentication() {
*/
if (retConnection instanceof HttpsURLConnection && !options.disableHttpsSocketKeepAlive()) {
HttpsURLConnection httpsConnection = ((HttpsURLConnection) retConnection);
httpsConnection.setSSLSocketFactory(new KeepAliveSocketFactory(httpsConnection.getSSLSocketFactory()));
httpsConnection.setSSLSocketFactory(KeepAliveSocketFactory.getInstance());
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package com.microsoft.azure.storage.core;

import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
import java.io.IOException;
import java.net.InetAddress;
Expand All @@ -39,10 +40,16 @@
public class KeepAliveSocketFactory extends SSLSocketFactory {
private SSLSocketFactory delegate;

private static final KeepAliveSocketFactory singletonKeepAliveSocketFactory = new KeepAliveSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());

KeepAliveSocketFactory(SSLSocketFactory delegate) {
this.delegate = delegate;
}

public static KeepAliveSocketFactory getInstance() {
return singletonKeepAliveSocketFactory;
}

@Override
public String[] getDefaultCipherSuites() {
return delegate.getDefaultCipherSuites();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.6.3</version>
<version>8.6.4</version>
<packaging>jar</packaging>

<name>Microsoft Azure Storage Client SDK</name>
Expand Down

0 comments on commit cdd966e

Please sign in to comment.