The first byte of a SSL ClientHello handshake record is 0x16 (22).
If the first byte received on a HTTP/1.1 connection is 0x16, the HTTP server could fail fast, return 400 bad request and immediately close the connection.
The behaviour could be extended to fail fast for other ineligible bytes, such as any bytes for ASCII characters <= 31
If the first byte received on a HTTP/1.1 connection is 0x16, the HTTP server could fail fast, return 400 bad request and immediately close the connection.
The behaviour could be extended to fail fast for other ineligible bytes, such as any bytes for ASCII characters <= 31
- relates to
-
JDK-8371413 HttpClient may end up waiting forever for a HTTP/2 connection to complete if a HTTP/3 connection fails and the target server doesn't support TLS over TCP
-
- Open
-
- links to
-
Review(master)
openjdk/jdk/28827