Skip to content

Message head to large on 22 kb of headers #3189

Closed Answered by seanmonstar
halldorrt asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, thanks for digging into this! I'd say there's a couple actions to do then:

  1. It'd be helpful for use to log in role.rs when converting from an httparse::Error, to help debugging in the future.
  2. Open an issue discussing how to configure the maximum headers allowed. Right now it's hard coded, and I agree it would be nice to allow configuration. No one has ever needed more than 100 before 😅 . Currently, with it being hard coded, we can use a stack-allocated array, which keeps it fast. Using a custom number would require allocating a dynamic array. It'd be nice to keep the fast-path for people who don't need more than 100.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@halldorrt
Comment options

Comment options

You must be logged in to vote
2 replies
@seanmonstar
Comment options

Answer selected by halldorrt
@halldorrt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants