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

duke duke at openjdk.org
Thu Jan 23 08:56:52 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

@vy 
Your change (at version b75938265560ae7c62e88e60a3895e37889316ad) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/23096#issuecomment-2609200999


More information about the net-dev mailing list