On Wed, 4 Nov 2026 10:27:17 GMT, Volkan Yazici <[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`. > > Note that the `jdk.http.maxHeaderSize` system property, used by `HttpClient`, > also defaults to `393216 or 384kB`. > The `380` hardcoded in `DEFAULT_MAX_REQ_HEADER_SIZE` is a typo. > Fix `DEFAULT_MAX_REQ_HEADER_SIZE` to `384 * 1024` and align it with 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). This pull request has now been integrated. Changeset: d61a2d8b Author: Volkan Yazici <[email protected]> URL: https://git.openjdk.org/jdk/commit/d61a2d8b41f504ea5999e5eeb3787aed9c5eb515 Stats: 311 lines in 2 files changed: 310 ins; 0 del; 1 mod 8396660: Documented value for the sun.net.httpserver.maxReqHeaderSize system property is incorrect Reviewed-by: dfuchs, jpai ------------- PR: https://git.openjdk.org/jdk/pull/33715
