Re: org.apache.hc.core5.http.NoHttpResponseException: localhost:8112 failed to respond

2019-07-29 Thread Oleg Kalnichevski
On Mon, 2019-07-29 at 14:59 +0300, Petar Tahchiev wrote: > This is my code: > ``` > > // Trust standard CA and those trusted by our custom strategy > final SSLContext sslcontext = > SSLContexts.custom().loadTrustMaterial((chain, authType) -> > true).build(); > > int timeout = 5; > >

Re: org.apache.hc.core5.http.NoHttpResponseException: localhost:8112 failed to respond

2019-07-29 Thread Petar Tahchiev
This is my code: ``` // Trust standard CA and those trusted by our custom strategy final SSLContext sslcontext = SSLContexts.custom().loadTrustMaterial((chain, authType) -> true).build(); int timeout = 5; PoolingAsyncClientConnectionManager ccm =

Re: org.apache.hc.core5.http.NoHttpResponseException: localhost:8112 failed to respond

2019-07-29 Thread Petar Tahchiev
Thank you Oleg, it worked :). However now, once in a while I get this type of error: Caused by: java.io.InterruptedIOException at org.apache.hc.client5.http.impl.async.AsyncConnectExec$2.cancelled(AsyncConnectExec.java:213) at