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

Jang Ryeol commented on HTTPCLIENT-1765:
----------------------------------------

Shouldn't it be system default?

As per document 
(https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/config/RequestConfig.html)
 it is expected to be system default, not same as connectTimeout.

And if you set very small value on connectTimeout, it is likely that socket 
timeout would occur. Isn't it unreasonable?

Regards,
Jang Ryeol

> 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: HttpClient (classic)
>    Affects Versions: 4.5
>         Environment: Any
>            Reporter: SATISH BURNWAL
>            Priority: Major
>              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
(v8.3.2#803003)

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

Reply via email to