Skip to content
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

parametrize max_request_time #137

Merged
merged 1 commit into from
Aug 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ Use correct backslash escaping in unlang. Default: `true`
##### `max_requests`
The maximum number of requests which the server keeps track of. This should be 256 multiplied by the number of clients. Default: `4096`

##### `max_request_time`
The maximum time (in seconds) to handle a request. Default: `30`

##### `max_servers`
Limit on the total number of servers running. Default: `4096`

Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Boolean $control_socket = false,
Integer $max_servers = 4096,
Integer $max_requests = 4096,
Integer $max_request_time = 30,
Boolean $mysql_support = false,
Boolean $pgsql_support = false,
Boolean $perl_support = false,
Expand Down
1 change: 1 addition & 0 deletions spec/classes/freeradius_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#:control_socket => false,
#:max_servers => "4096",
#:max_requests => "4096",
#:max_request_time => "30",
#:mysql_support => false,
#:perl_support => false,
#:utils_support => false,
Expand Down
1 change: 1 addition & 0 deletions spec/shared_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#"freeradius::ldap_support" => '',
#"freeradius::krb5_support" => '',
#"freeradius::max_requests" => '',
#"freeradius::max_request_time" => '',
#"freeradius::max_servers" => '',
#"freeradius::mysql_support" => '',
#"freeradius::perl_support" => '',
Expand Down
2 changes: 1 addition & 1 deletion templates/radiusd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ correct_escapes = <%= @correct_escapes %>
#
# Useful range of values: 5 to 120
#
max_request_time = 30
max_request_time = <%= @max_request_time %>

# cleanup_delay: The time to wait (in seconds) before cleaning up
# a reply which was sent to the NAS.
Expand Down