RFR: 8328919: Add BodyHandlers / BodySubscribers methods to handle excessive server input [v14]

Jaikiran Pai jpai at openjdk.org
Thu Jan 23 01:48:51 UTC 2025


On Wed, 22 Jan 2025 15:58:22 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> Adds `limiting()` factory methods to `HttpResponse.Body{Handlers,Subscribers}` to handle excessive server input in `HttpClient`. I would appreciate your input whether `discardExcess` should be kept or dropped. I plan to file a CSR once there is an agreement on the PR.
>
> Volkan Yazici has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - Make the value of `RESPONSE_HEADER_VALUE` more self-explanatory
>  - Consume `InputStream` until reaching an EOF
>  - Improve resource release

Thank you Volkan for all the updates. This now looks good to me.

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

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23096#pullrequestreview-2568683646


More information about the net-dev mailing list