16 lines
347 B
Ruby
16 lines
347 B
Ruby
|
module Apache
|
||
|
module Performance
|
||
|
def activate_keepalive(options)
|
||
|
self << "KeepAlive On"
|
||
|
options.each do |option, value|
|
||
|
case option
|
||
|
when :requests
|
||
|
self << "MaxKeepAliveRequests #{value}"
|
||
|
when :timeout
|
||
|
self << "KeepAliveTimeout #{value}"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|