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

Commit c621c62

Browse files
committed
Get singleton instance of KeepAliveSocketFactory in BaseRequest
1 parent 8412814 commit c621c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
/*

0 commit comments

Comments
 (0)