RFR: 8303965: java.net.http.HttpClient should reset the stream if response headers contain malformed header fields
Daniel Fuchs
dfuchs at openjdk.org
Fri Mar 10 14:07:18 UTC 2023
According to RFC 7540:
Endpoints MUST treat a request or response that contains
undefined or invalid pseudo-header fields as malformed (Section 8.1.2.6).
Section-8.1.2.6 Malformed requests or responses that are detected MUST be treated as a stream error (Section 5.4.2) of type PROTOCOL_ERROR.
The current behavior is to close the connection with protocol error. This change makes it reset the stream instead.
-------------
Commit messages:
- 8303965
Changes: https://git.openjdk.org/jdk/pull/12976/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12976&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8303965
Stats: 296 lines in 7 files changed: 191 ins; 70 del; 35 mod
Patch: https://git.openjdk.org/jdk/pull/12976.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12976/head:pull/12976
PR: https://git.openjdk.org/jdk/pull/12976
More information about the net-dev
mailing list