On Wed, 4 Nov 2026 10:45:15 GMT, Daniel Fuchs <[email protected]> wrote:
>> `src/jdk.httpserver/share/classes/module-info.java` documents that >> `sun.net.httpserver.maxReqHeaderSize` defaults to `393216 or 384kB`. This >> doesn't match the implementation >> `sun.net.httpserver.ServerConfig#DEFAULT_MAX_REQ_HEADER_SIZE`, which is `380 >> * 1024`, i.e., `389120 or 380kB`. Fix the default documented in >> `module-info.java`. >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > I would suggest importing the test > [test/jdk/com/sun/net/httpserver/property/MaxReqHeaderSizePropertyTest.java](https://github.com/openjdk/jdk/pull/31974/changes#diff-437fa4d237c6c0c356760a3b4f4cbc6795d940f9a4b2ba4bef2ddb9d9b905198) > from https://git.openjdk.org/jdk/pull/31974 in this PR @dfuch, moved `MaxReqHeaderSizePropertyTest.java` from #33715 & [JDK-8295785] to here in b23c845b7e5. [JDK-8295785]: https://bugs.openjdk.org/browse/JDK-8295785 ------------- PR Comment: https://git.openjdk.org/jdk/pull/33715#issuecomment-6629838700
