Skip to content

Commit a42785c

Browse files
committed
Merge pull request #54 from raoulbhatia/multi_accept
Correct multi_accept implementation.
2 parents b80b798 + 0f2ab81 commit a42785c

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

manifests/init.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@
146146
# [*worker_connections*]
147147
# Specified worker connections number. Default is 1024.
148148
#
149+
# [*multi_accept*]
150+
# Activate or deactivate the usage of multi_accept.
151+
# Default is on but it is then commented out in the default nginx template.
152+
#
149153
# [*keepalive_timeout*]
150154
# Specified keepalive timeout. Default is 65(ms).
151155
#
@@ -237,6 +241,7 @@
237241
class nginx (
238242
$gzip = params_lookup( 'gzip' ),
239243
$worker_connections = params_lookup( 'worker_connections' ),
244+
$multi_accept = params_lookup( 'multi_accept' ),
240245
$keepalive_timeout = params_lookup( 'keepalive_timeout' ),
241246
$server_names_hash_max_size = params_lookup( 'server_names_hash_max_size' ),
242247
$server_names_hash_bucket_size = params_lookup( 'server_names_hash_bucket_size' ),

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
$gzip = 'on'
1818
$worker_connections = 1024
19+
$multi_accept = 'on'
1920
$keepalive_timeout = 65
2021
$client_max_body_size = '10m'
2122
$server_names_hash_max_size = 512

spec/classes/nginx_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
9292
events {
9393
worker_connections 1024;
94-
#
94+
# multi_accept on;
9595
}
9696
9797
http {

templates/conf.d/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pid <%= scope.lookupvar('nginx::pid_file')%>;
77

88
events {
99
worker_connections <%= scope.lookupvar('nginx::worker_connections')%>;
10-
# <% if scope.lookupvar('nginx::nx_multi_accept') == 'on' %>multi_accept on;<% end %>
10+
# <% if scope.lookupvar('nginx::multi_accept') == 'on' %>multi_accept on;<% end %>
1111
}
1212

1313
http {

0 commit comments

Comments
 (0)