Hello,

While using HTTP/2 only client, after approx. 12 hours the connection is broken and is not established anymore. Every couple of minutes async HTTP/2 requests are sent to a Tomcat9 server. There are no errors whatsoever but after a couple of hours every request fails until the application running HttpClient 5.0 is restarted.

Would an evictIdleConnections() call help in this case?
Let's suppose Tomcat would close the connection after some time, what is Httclient 5.0's default reaction? Is it re-established transparently?


br,

Can


Client: Apache Httpclient 5.0
Used Code for the client:

final IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
        .setSoTimeout(Timeout.ofSeconds(3))
        .build();

httpTx = HttpAsyncClients.customHttp2()
        .setIOReactorConfig(ioReactorConfig)
.setDefaultRequestConfig(RequestConfig.copy(RequestConfig.DEFAULT)
            .setMaxRedirects(10)
            .setConnectTimeout(Timeout.ofSeconds(1))
.setConnectionRequestTimeout(Timeout.ofMilliseconds(500)) //when requesting from conn manager
            .setConnectionKeepAlive(TimeValue.ofMinutes(10))
            .build())
        .build();


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to