Skip to content

Commit

Permalink
enforce 30s a default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Feb 6, 2015
1 parent 5450303 commit cb34e23
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion etc/agent.cfg
Expand Up @@ -27,7 +27,7 @@ ca-cert-file =
no-ssl-check = 0

# connection timeout, in seconds
timeout = 180
timeout = 30

# user name for server authentication
user =
Expand Down
5 changes: 3 additions & 2 deletions etc/agent.cfg.pod
Expand Up @@ -66,7 +66,7 @@ Disables server SSL certificate validation. The default is 0 (false).

=item B<timeout>

Specifies a timeout, in seconds, for server connections.
Specifies the timeout, in seconds, for server connections. The default is 30.

=back

Expand Down Expand Up @@ -200,7 +200,8 @@ Enables scanning user profiles for softwares. The default is 0

=item B<timeout>

Specifies the timeout for task modules execution.
Specifies the timeout, in seconds, for individual inventory components
execution. The default is 30.

=item B<additional-content>

Expand Down
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent/Config.pm
Expand Up @@ -223,7 +223,7 @@ sub new {
},
http => {
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'ca-cert-dir' => undef,
'ca-cert-file' => undef,
'no-ssl-check' => 0,
Expand All @@ -246,7 +246,7 @@ sub new {
inventory => {
'disable' => 0,
'additional-content' => undef,
'timeout' => 180,
'timeout' => 30,
'no-category' => [],
'scan-homedirs' => 0,
'scan-profiles' => 0,
Expand Down
2 changes: 1 addition & 1 deletion resources/config/default
Expand Up @@ -27,7 +27,7 @@ ca-cert-file =
no-ssl-check = 0

# connection timeout, in seconds
timeout = 180
timeout = 30

# user name for server authentication
user =
Expand Down
18 changes: 9 additions & 9 deletions t/agent/config.t
Expand Up @@ -20,7 +20,7 @@ my %config = (
'ca-cert-dir' => undef,
'password' => undef,
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'user' => undef,
},
httpd => {
Expand All @@ -42,7 +42,7 @@ my %config = (
'no-category' => [],
'scan-homedirs' => 0,
'scan-profiles' => 0,
'timeout' => 180
'timeout' => 30
},
deploy => {
'disable' => 0,
Expand Down Expand Up @@ -72,7 +72,7 @@ my %config = (
'ca-cert-dir' => undef,
'password' => undef,
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'user' => undef,
},
'httpd' => {
Expand All @@ -92,7 +92,7 @@ my %config = (
'disable' => 0,
'additional-content' => undef,
'no-category' => [ 'printer' ],
'timeout' => 180,
'timeout' => 30,
'scan-homedirs' => 0,
'scan-profiles' => 0,
},
Expand Down Expand Up @@ -124,7 +124,7 @@ my %config = (
'ca-cert-dir' => undef,
'password' => undef,
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'user' => undef,
},
'httpd' => {
Expand All @@ -146,7 +146,7 @@ my %config = (
'no-category' => [ ],
'scan-homedirs' => 0,
'scan-profiles' => 0,
'timeout' => 180,
'timeout' => 30,
},
'deploy' => {
'disable' => 0,
Expand Down Expand Up @@ -176,7 +176,7 @@ my %config = (
'ca-cert-dir' => undef,
'password' => undef,
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'user' => undef,
},
httpd => {
Expand Down Expand Up @@ -228,7 +228,7 @@ my %config = (
'ca-cert-dir' => undef,
'password' => undef,
'proxy' => undef,
'timeout' => 180,
'timeout' => 30,
'user' => undef,
},
httpd => {
Expand All @@ -250,7 +250,7 @@ my %config = (
'no-category' => [],
'scan-homedirs' => 0,
'scan-profiles' => 0,
'timeout' => 180
'timeout' => 30
},
deploy => {
'disable' => 0,
Expand Down

0 comments on commit cb34e23

Please sign in to comment.