[
https://issues.apache.org/jira/browse/HTTPCLIENT-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16906412#comment-16906412
]
Keshav Gupta edited comment on HTTPCLIENT-2010 at 8/13/19 5:35 PM:
-------------------------------------------------------------------
As per the following issues it says that issue is resolved but I am facing the
issue in 4.5.9
https://issues.apache.org/jira/browse/HTTPCLIENT-1589
https://issues.apache.org/jira/browse/HTTPCLIENT-1478
cc - [~olegk]
was (Author: guptakeshav24):
As per the following issues it says that issue is resolved but I am facing the
issue in 4.5.9
https://issues.apache.org/jira/browse/HTTPCLIENT-1589
> SSL handshaking taking lot of time in createLayeredSocket in
> SSLConnectionSocketFactory
> ---------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-2010
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2010
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Affects Versions: 4.5.9
> Reporter: Keshav Gupta
> Priority: Major
>
> I am seeing SSL handshaking taking lot of time.
> Time difference between following log messages in SSLConnectionSocketFactory
> in connectSocket is greater than soTimeout set.
> {code:java}
> "Starting handshake"{code}
> and
> {code:java}
> "Secure session established" {code}
> {code:java}
> if (connectTimeout > 0 && sock.getSoTimeout() == 0) {
> sock.setSoTimeout(connectTimeout); }
> {code}
> connectTimeout set is 5000.
>
> SoTimeout set is as follows :
> {code:java}
> PoolingHttpClientConnectionManager connectionManager = new
> PoolingHttpClientConnectionManager();
> connectionManager.setMaxTotal(properties.getHttpMaxTotalConnections());
> connectionManager.setDefaultMaxPerRoute(properties.getHttpDefaultMaxPerRoute());
> final SocketConfig socketConfig =
> SocketConfig.custom().setSoTimeout(5000).build();
> connectionManager.setDefaultSocketConfig(socketConfig);
> {code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]