[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keshav Gupta updated HTTPCLIENT-2010:
-------------------------------------
    Description: 
I am seeing SSL handshaking taking lot of time. 

Difference between log messages
{code:java}
"Starting handshake"{code}
and
{code:java}
"Secure session established" in {code}
 

SSLConnectionSocketFactory in connectSocket is greater than soTimeout set.

 
{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}
 

 

  was:
I am seeing SSL handshaking taking lot of time. 

Difference between log messages
{code:java}
"Starting handshake"{code}
and
{code:java}
"Secure session established" in {code}
 

SSLConnectionSocketFactory in connectSocket is greater than soTime set.

 
{code:java}
if (connectTimeout > 0 && sock.getSoTimeout() == 0) { 
sock.setSoTimeout(connectTimeout); }
{code}
connectTimeout set is 5000.

 

 

 


> 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. 
> Difference between log messages
> {code:java}
> "Starting handshake"{code}
> and
> {code:java}
> "Secure session established" in {code}
>  
> SSLConnectionSocketFactory in connectSocket is greater than soTimeout set.
>  
> {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]

Reply via email to