Skip to content

Commit 632dbc1

Browse files
authored
Merge pull request puppetlabs#1434 from sathieu/patch-4
Set default keepalive to On
2 parents 2931d0e + d90bfbd commit 632dbc1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Sets the Apache server's base configuration directory. This is useful for specia
10001000

10011001
##### `keepalive`
10021002

1003-
Determines whether to enable persistent HTTP connections with the [`KeepAlive`][] directive. Valid options: 'Off', 'On'. Default: 'Off'.
1003+
Determines whether to enable persistent HTTP connections with the [`KeepAlive`][] directive. Valid options: 'Off', 'On'. Default: 'On'.
10041004

10051005
If 'On', use the [`keepalive_timeout`][] and [`max_keepalive_requests`][] parameters to set relevant options.
10061006

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
'nss' => 'libmodnss.so',
143143
}
144144
$conf_template = 'apache/httpd.conf.erb'
145-
$keepalive = 'Off'
145+
$keepalive = 'On'
146146
$keepalive_timeout = 15
147147
$max_keepalive_requests = 100
148148
$fastcgi_lib_path = undef

spec/acceptance/apache_parameters_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,14 @@ class { 'apache':
353353
describe 'keepalive' do
354354
describe 'setup' do
355355
it 'applies cleanly' do
356-
pp = "class { 'apache': keepalive => 'On', keepalive_timeout => '30', max_keepalive_requests => '200' }"
356+
pp = "class { 'apache': keepalive => 'Off', keepalive_timeout => '30', max_keepalive_requests => '200' }"
357357
apply_manifest(pp, :catch_failures => true)
358358
end
359359
end
360360

361361
describe file($conf_file) do
362362
it { is_expected.to be_file }
363-
it { is_expected.to contain 'KeepAlive On' }
363+
it { is_expected.to contain 'KeepAlive Off' }
364364
it { is_expected.to contain 'KeepAliveTimeout 30' }
365365
it { is_expected.to contain 'MaxKeepAliveRequests 200' }
366366
end

0 commit comments

Comments
 (0)