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
This commit is contained in:
Oleg Kalnichevski 2011-03-10 09:24:57 +00:00
parent 73e6ca8bb8
commit 126f1da349
1 changed files with 2 additions and 2 deletions

View File

@ -339,12 +339,12 @@ public class SSLSocketFactory implements LayeredSchemeSocketFactory, LayeredSock
* @since 4.1 * @since 4.1
*/ */
public Socket createSocket(final HttpParams params) throws IOException { public Socket createSocket(final HttpParams params) throws IOException {
return new Socket(); return this.socketfactory.createSocket();
} }
@Deprecated @Deprecated
public Socket createSocket() throws IOException { public Socket createSocket() throws IOException {
return new Socket(); return this.socketfactory.createSocket();
} }
/** /**