This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this changes the default of 80 KiB to 160 KiB
(nodejs was already setting a different max header size - either using
http_parser_set_max_header_size()
, or not using this http-parser at all, but rather https://github.com/nodejs/llparse - I'm not sure)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! I see that now. I'll investigate where this is supposed to go. I do wonder if this value should be set to the same as wherever else it is set in node?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This repo is largely for the benefit of other users of this library besides nodejs, I think.
Take a look at:
https://github.com/nodejs/node/blob/v12.4.0/src/node_options.h#L186
https://github.com/nodejs/node/blob/v12.4.0/src/node_options.cc#L580
https://github.com/nodejs/node/blob/v12.4.0/deps/http_parser/http_parser.gyp#L59
note that it looks like this "legacy" parser is not the default, since 12.0 I think:
https://github.com/nodejs/node/blob/v12.4.0/src/node_options.cc#L319-L321