On Thu, 2025-01-16 at 12:08 +0100, [email protected]
wrote:
> Ok sorry, maybe something like:
> 
> BasicHttpClientConnectionManager cm = new
> BasicHttpClientConnectionManager();
> cm.setConnectionConfig(ConnectionConfig.custom().setConnectTimeout(Ti
> meout.ofMilliseconds(connectionTimeout)).build());
>         
> HttpClients.custom().setConnectionManager(cm) ??
> 

Indeed. Something like that. Connect timeout is not applicable at the
request level where most of requests end up being executed over a
persistent connection from the pool or even as one of many streams.
Connect timeout is a connection route level property.

Oleg  


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to