HTTPCLIENT-1478: deprecated SSLSocketFactory ignores socket timeout parameter during SSL handshake
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1576362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3220bbf633
commit
09027e7286
|
@ -397,7 +397,9 @@ public class SSLSocketFactory implements LayeredConnectionSocketFactory, SchemeL
|
|||
} else {
|
||||
host = new HttpHost(remoteAddress.getHostName(), remoteAddress.getPort(), "https");
|
||||
}
|
||||
final int socketTimeout = HttpConnectionParams.getSoTimeout(params);
|
||||
final int connectTimeout = HttpConnectionParams.getConnectionTimeout(params);
|
||||
socket.setSoTimeout(socketTimeout);
|
||||
return connectSocket(connectTimeout, socket, host, remoteAddress, localAddress, null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue