Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Make HTTP_MAX_HEADER_SIZE configurable via gyp #452

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented Dec 1, 2018

Spin out from nodejs/node#24716.

This also sets the default to 8KB when compiled via gyp.

Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % style nit.

http_parser.gyp Outdated
@@ -56,7 +60,7 @@
'defines': [ 'HTTP_PARSER_STRICT=0' ],
'include_dirs': [ '.' ],
},
'defines': [ 'HTTP_PARSER_STRICT=0' ],
'defines': [ 'HTTP_MAX_HEADER_SIZE=<(http_max_header_size)', 'HTTP_PARSER_STRICT=0' ],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the directives on their own lines here and below?

@@ -47,6 +47,10 @@
],
},

'variables': {
'http_max_header_size%': '8192'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bnoordhuis do you think we should change this back to 80KB here? We will be passing down the variable anyway in Node.js.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it won't hurt backwards compatibility but truthfully, I picked the 80 kb limit at random.

@@ -47,6 +47,10 @@
],
},

'variables': {
'http_max_header_size%': '8192'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it won't hurt backwards compatibility but truthfully, I picked the 80 kb limit at random.

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

Successfully merging this pull request may close these issues.

2 participants