RFR: 8367976: Validate and clamp jdk.httpclient.bufsize [v2]

Daniel Fuchs dfuchs at openjdk.org
Mon Oct 20 16:42:07 UTC 2025


On Mon, 20 Oct 2025 10:09:37 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> Validate and clamp the value populated from the `jdk.httpclient.bufsize` system property. Added two new tests: Does clamping work? Does the minimum value wedge the client?
>
> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update `module-info.java` docs

src/java.net.http/share/classes/module-info.java line 54:

> 52:  * client. It accepts values between 1 and 2^14 (16384), including both
> 53:  * extremums. Values outside this range will be discarded and substituted with
> 54:  * the default.

Suggestion:

 * The capacity of internal ephemeral buffers allocated to pass data to and from the
 * client, in bytes. Valid values are in the range [1, 2^14 (16384)].
 * If an invalid value is provided, the default value is used.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27874#discussion_r2445552117


More information about the net-dev mailing list