-
Sub-task
-
Resolution: Delivered
-
P4
-
20
Idle Connection Timeouts for HTTP/2 are added in this release.
The `jdk.httpclient.keepalivetimeout` property can now be used to configure a system-wide value, in seconds, used to close idle connections for both HTTP/1.1 and HTTP/2 when using the HttpClient. In addition, developer's can also use the `jdk.httpclient.keepalivetimeout.h2` to specify a timeout value exclusively for use with the HTTP/2 protocol, regardless of whether or not the jdk.httpclient.keepalivetimeout` is specified at runtime.
See the <a href="https://docs.oracle.com/en/java/javase/20/docs/api/java.net.http/module-summary.html"><code>java.net.http</code></a> module and [Networking Properties](https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/net/doc-files/net-properties.html) in the JDK 20 API documentation for a list of current networking properties.
The `jdk.httpclient.keepalivetimeout` property can now be used to configure a system-wide value, in seconds, used to close idle connections for both HTTP/1.1 and HTTP/2 when using the HttpClient. In addition, developer's can also use the `jdk.httpclient.keepalivetimeout.h2` to specify a timeout value exclusively for use with the HTTP/2 protocol, regardless of whether or not the jdk.httpclient.keepalivetimeout` is specified at runtime.
See the <a href="https://docs.oracle.com/en/java/javase/20/docs/api/java.net.http/module-summary.html"><code>java.net.http</code></a> module and [Networking Properties](https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/net/doc-files/net-properties.html) in the JDK 20 API documentation for a list of current networking properties.
- relates to
-
JDK-8295649 Add a means to close idle connections in HTTP/2 connection pool
-
- Closed
-