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(); } /**