Thanks I understand.
I would appreciate if some concrete code or pointer to examples is given
regarding:
1) Create a shared HTTPClient
2) how a given thread is passed=given the shared client and changes,
say, connection timeout AND ALSO its userAgentString.
(the userAgentString is not somet
On 5/16/2018 8:42 AM, Shawn Heisey wrote:
> RequestConfig rc = RequestConfig.custom().setConnectTimeout(15000)
> .setSocketTimeout(12).build();
> httpClient = HttpClients.custom().setDefaultRequestConfig(rc)
> .setMaxConnPerRoute(300).setMaxConnTotal(5000).disableAutomaticRetries(
On Wed, 2018-05-16 at 15:56 +, Daly, Paul wrote:
> I canot speak for HttpClient5, but If you are just looking to change
> some timeouts on the request, in 4.5.5, I do this (as recommended
> from this emai list some time ago!).
>
> I guess its not too differenent for HC5 (?)
>
>
> - Create a
On Wed, 2018-05-16 at 18:01 +0300, / wrote:
> Thanks,
>
> if I understood correctly, the pattern should be:
>
> 1) Create a RequestConfig (rc) object and keep it.
> 2) If you need to modify httpclient, modify the kept RequestConfig
> object
> 3) After doing said modifications **re-create httpclie
Oleg,
realistically I would expect the default timeout to be around 5 seconds, as is
the default value in the PoolingHttpClientConnectionManager (
https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionM
Hi there,
I am looking for an example on how to configure HttpClient5 after it has
been built, i.e. once I have an HttpClient object, how do I go about and
change some of its settings, for example connection timeout or
user-agent-string or even cookie jar.
I am looking for the most straight-
I canot speak for HttpClient5, but If you are just looking to change some
timeouts on the request, in 4.5.5, I do this (as recommended from this emai
list some time ago!).
I guess its not too differenent for HC5 (?)
- Create a shared HTTPClient instance. this is used by all requests in the JV
Thanks,
if I understood correctly, the pattern should be:
1) Create a RequestConfig (rc) object and keep it.
2) If you need to modify httpclient, modify the kept RequestConfig object
3) After doing said modifications **re-create httpclient** with kept
RequestConfig.
4) Keep the RequestConfig.
On 5/16/2018 8:09 AM, / wrote:
I am looking for an example on how to configure HttpClient5 after it
has been built and how to extract/print some of its configuration.
Once I have an HttpClient object, how do I go about and change some of
its settings, for example connection timeout or user-age
many thanks for your advice!
On 16/05/18 17:13, Oleg Kalnichevski wrote:
On Wed, 2018-05-16 at 17:04 +0300, / wrote:
Hi there,
My main requirement is that I do not have to change a lot of code
when
the HC5 becomes stable.
So, if I am writing software to live for the next 3 years should I
use
On Wed, 2018-05-16 at 17:09 +0300, / wrote:
> Hi there,
>
> I am looking for an example on how to configure HttpClient5 after it
> has
> been built and how to extract/print some of its configuration.
>
> Once I have an HttpClient object, how do I go about and change some
> of
> its settings, fo
On Wed, 2018-05-16 at 17:04 +0300, / wrote:
> Hi there,
>
> My main requirement is that I do not have to change a lot of code
> when
> the HC5 becomes stable.
>
> So, if I am writing software to live for the next 3 years should I
> use
> already existing HC4 or try HC5-beta. In fact I already s
Hi there,
I am looking for an example on how to configure HttpClient5 after it has
been built and how to extract/print some of its configuration.
Once I have an HttpClient object, how do I go about and change some of
its settings, for example connection timeout or user-agent-string or
even c
Hi there,
My main requirement is that I do not have to change a lot of code when
the HC5 becomes stable.
So, if I am writing software to live for the next 3 years should I use
already existing HC4 or try HC5-beta. In fact I already started playing
with HC5 but I can't find a lot of examples
On Wed, 2018-05-16 at 15:16 +0300, Дмитрий Жихарев wrote:
> Hi all!
>
> I was wondering if the IOReactorConfig.DEFAULT intentionally has
> soTimeout set to ZERO_MILLESECONDS. Before version 5 there was also
> connectTimeout, which also was 0 for the default builder. I
> understand that the library
Hi all!
I was wondering if the IOReactorConfig.DEFAULT intentionally has soTimeout set
to ZERO_MILLESECONDS. Before version 5 there was also connectTimeout, which
also was 0 for the default builder. I understand that the library can't make up
its own mind on what timeout the user requires, but
16 matches
Mail list logo