Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirage: impose a 4k limit on header lengths #612

Closed
wants to merge 1 commit into from

Conversation

djs55
Copy link
Member

@djs55 djs55 commented May 1, 2018

Although the HTTP spec does not impose a maximum limit on header lengths, most implementations impose a limit to avoid a client from exhausting all available server memory.

According to https://stackoverflow.com/a/8623061 the typical limit is between 4k and 48k, but this usually applies to the sum of the request line and all the headers. It's more convenient for us to
apply the limit per header.

This requires [mirage/mirage-channel#25]

Signed-off-by: David Scott dave@recoil.org

Although the HTTP spec does not impose a maximum limit on header
lengths, most implementations impose a limit to avoid a client from
exhausting all available server memory.

According to https://stackoverflow.com/a/8623061 the typical limit
is between 4k and 48k, but this usually applies to the sum of the
request line and all the headers. It's more convenient for us to
apply the limit per header.

This requires [mirage/mirage-channel#25]

Signed-off-by: David Scott <dave@recoil.org>
djs55 added a commit to djs55/vpnkit that referenced this pull request May 1, 2018
This imports mirage/ocaml-cohttp#612

Signed-off-by: David Scott <dave.scott@docker.com>
djs55 added a commit to djs55/vpnkit that referenced this pull request May 1, 2018
This imports mirage/ocaml-cohttp#612

Signed-off-by: David Scott <dave.scott@docker.com>
@mseri
Copy link
Collaborator

mseri commented Oct 21, 2020

Is this still needed?

@mseri mseri closed this Oct 23, 2020
@mseri
Copy link
Collaborator

mseri commented Oct 23, 2020

Feel free to reopen and ping me if it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants