Skip to content

setRequestHeaderSize and setResponseHeaderSize apply to all headers, not one #6204

@mikekap

Description

@mikekap

Jetty version Jetty 9.4.31

Java version 14.0.2

OS type/version Mac OS

Description
This is either a bug with the documentation or the implementation. Theses are the comments in HTTPConfiguration.java: https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java#L401-L422 .

The documentation says that these control "the maximum size in bytes of the ... header." MDN defines a header as ONE key-value pair - i.e. just one Header: Value.

Unfortunately in Jetty, these configuration options actually control the size of the HTTP Header "Area" (not sure what to call it). Setting either of these controls the total length of ALL the (request/response) headers, not just the maximum of one header. I'm not sure if that's intentional, but if it is, it would be great to improve the documentation to say that it's the total header length, not a single header length.

Metadata

Metadata

Assignees

Labels

StaleFor auto-closed stale issues and pull requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions