RFR: 8328919: Add BodyHandlers / BodySubscribers methods to handle excessive server input [v14]
Volkan Yazici
vyazici at openjdk.org
Wed Jan 22 15:58:22 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23096/files
- new: https://git.openjdk.org/jdk/pull/23096/files/8668a034..b7593826
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23096&range=13
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23096&range=12-13
Stats: 37 lines in 1 file changed: 26 ins; 4 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/23096.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23096/head:pull/23096
PR: https://git.openjdk.org/jdk/pull/23096
More information about the net-dev
mailing list