hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1765) SSLConnectionSocketFactory uses connectTimeout for read timeout
Date Sat, 03 Sep 2016 17:43:20 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15461436#comment-15461436
] 

Oleg Kalnichevski commented on HTTPCLIENT-1765:
-----------------------------------------------

Why should it? Why should request level parameters have any impact on connection level protocols?

Oleg

> SSLConnectionSocketFactory uses connectTimeout for read timeout
> ---------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1765
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1765
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpConn
>    Affects Versions: 4.5
>         Environment: Any
>            Reporter: SATISH BURNWAL
>              Labels: features
>
> SSLConnectionSocketFactory uses connect timeout value for socket.soTimeout as well (as
per the code in SSLConnectionsocketFactory). Because of this, when clients are created with
such config (below), read timeout is not taking effect.
> RequestConfig.Builder rb = RequestConfig.custom();
> 			rb.setConnectTimeout(3000);
> 			rb.setExpectContinueEnabled(true);
> 			rb.setSocketTimeout(10000);
> 			rb.setAuthenticationEnabled(true);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message