Thanks for your reply. I have activated HttpClient logs and it looks like, at least in this case, time is spent in DNS resolution. Is there a way to set a timeout for this (at the HttpClient level if that's possible, or at the OS level otherwise) ?
Feb 22, 2024 1:10:24 PM org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator connect FINE: www.anek.gr resolving remote address Feb 22, 2024 1:10:39 PM org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator connect FINE: www.anek.gr resolved to [www.anek.gr/212.205.13.103] Óscar