On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary <[email protected]> wrote:

> **Issue**
> When using HTTP/2 with the HttpClient, it can often be necessary to close an 
> idle Http2 Connection before a server sends a GOAWAY frame. For example, a 
> server or cloud based tool could close a TCP connection silently when it is 
> idle for too long resulting in ConnectionResetException being thrown by the 
> HttpClient.
> 
> **Proposed Solution**
> A new system property, `jdk.httpclient.idleConnectionTimeout`, was added and 
> is used to specify in Milliseconds how long an idle connection (idle 
> connections are those which have no currently active streams) for the 
> HttpClient before the connection is closed.

This pull request has now been integrated.

Changeset: b9db16ab
Author:    Conor Cleary <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/b9db16ab097058903cfd12d25becbbe802957143
Stats:     278 lines in 4 files changed: 273 ins; 2 del; 3 mod

8288717: Add a means to close idle connections in HTTP/2 connection pool

Reviewed-by: dfuchs, michaelm

-------------

PR: https://git.openjdk.org/jdk/pull/10183

Reply via email to