-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
#429 Added new map_hash_bucket_size and map_hash_max_size paramater #430
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ pkg/ | |
Gemfile.lock | ||
spec/fixtures/ | ||
/metadata.json | ||
/.idea | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,8 @@ | |
$multi_accept = $nginx::params::nx_multi_accept, | ||
$names_hash_bucket_size = $nginx::params::nx_names_hash_bucket_size, | ||
$names_hash_max_size = $nginx::params::nx_names_hash_max_size, | ||
$map_hash_bucket_size = $nginx::params::nx_map_hash_bucket_size, | ||
$map_hash_max_size = $nginx::params::nx_map_hash_max_size, | ||
$nginx_error_log = $nginx::params::nx_nginx_error_log, | ||
$nginx_locations = {}, | ||
$nginx_mailhosts = {}, | ||
|
@@ -165,6 +167,12 @@ | |
if (!is_integer($names_hash_max_size)) { | ||
fail('$names_hash_max_size must be an integer.') | ||
} | ||
if (!is_integer($map_hash_bucket_size)) { | ||
fail('$map_hash_bucket_size must be an integer.') | ||
} | ||
if (!is_integer($map_hash_max_size)) { | ||
fail('$map_hash_max_size must be an integer.') | ||
} | ||
validate_string($proxy_buffers) | ||
validate_string($proxy_buffer_size) | ||
if ($http_cfg_append != false) { | ||
|
@@ -221,6 +229,8 @@ | |
multi_accept => $multi_accept, | ||
names_hash_bucket_size => $names_hash_bucket_size, | ||
names_hash_max_size => $names_hash_max_size, | ||
map_hash_bucket_size => $map_hash_bucket_size, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This creates an error because the new parameters haven't been added to the |
||
map_hash_max_size => $map_hash_max_size, | ||
nginx_error_log => $nginx_error_log, | ||
pid => $pid, | ||
proxy_buffers => $proxy_buffers, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ | |
$nx_types_hash_max_size = 1024 | ||
$nx_types_hash_bucket_size = 512 | ||
$nx_names_hash_bucket_size = 64 | ||
$nx_map_hash_bucket_size = 64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
$nx_map_hash_max_size = 2048 | ||
$nx_names_hash_max_size = 512 | ||
$nx_multi_accept = off | ||
# One of [kqueue|rtsig|epoll|/dev/poll|select|poll|eventport] | ||
|
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 should be removed