hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yair ogen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1656) Client Builder doesn't expose setValidateAfterInactivity(int)
Date Thu, 04 Jun 2015 11:51:37 GMT

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

yair ogen commented on HTTPCLIENT-1656:

Ok. But you will add it in the future?

> Client Builder doesn't expose setValidateAfterInactivity(int)
> -------------------------------------------------------------
>                 Key: HTTPCLIENT-1656
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1656
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.4.1
>            Reporter: yair ogen
>            Priority: Minor
>             Fix For: 5.0
> The API 'setStaleConnectionCheckEnabled' on the RequestConfig Builder is deprecated.
It points to calling 'setValidateAfterInactivity' on the PoolingHttpClientConnectionManager
> However we shouldn't mandate creating our own PoolingHttpClientConnectionManager instance
(instead of reusing the one created automatically by the httpClient builder) just to setValidateAfterInactivity.
> We should expose on the client/request config builder a setValidateAfterInactivity like
we do for 'setMaxConnPerRoute' and 'setMaxConnTotal' (which in the builder are later set on
the internally created PoolingHttpClientConnectionManager ).

This message was sent by Atlassian JIRA

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

View raw message