From 126f1da34957b6150c2c68947617dac36b39e0c4 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Thu, 10 Mar 2011 09:24:57 +0000 Subject: [PATCH] Use SSL socket factory to create unconnected sockets git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.1.x@1080163 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/http/conn/ssl/SSLSocketFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java index 47dc0c427..38b6141da 100644 --- a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java +++ b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java @@ -339,12 +339,12 @@ public class SSLSocketFactory implements LayeredSchemeSocketFactory, LayeredSock * @since 4.1 */ public Socket createSocket(final HttpParams params) throws IOException { - return new Socket(); + return this.socketfactory.createSocket(); } @Deprecated public Socket createSocket() throws IOException { - return new Socket(); + return this.socketfactory.createSocket(); } /**