-
Notifications
You must be signed in to change notification settings - Fork 261
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
settingsMaxTotalHeaderLength not working as expected #807
Comments
A "quick" look around makes me think it's the -- Every new chunk is of length 8 in the following examples
new = 8
{start} -> (THStatus 0 _ id)
id S.null + new -> (THStatus 8 _ (S.append 8))
S.append 8 new + new -> (THStatus 24 _ (S.append 8 . S.append 8))
etc. // Sorry for the bad example, but I think it conveys the underlying operations I'm also not completely sure what |
Relating to #781. |
Raised a question here and K. A. Buhr helped in confirming a bug.
Cross-posting:
Warp has a
settingsMaxTotalHeaderLength
field which by default is 50*1024 : https://hackage.haskell.org/package/warp-3.3.10/docs/src/Network.Wai.Handler.Warp.Settings.html#defaultSettingsI suppose this means 50KB? But, when I try to send a header with ~33KB, server throws bad request:
Result:
(note that the request size is 33098)
Same thing works with 32.5KB header file.
The text was updated successfully, but these errors were encountered: