From: Tyler Riddle Date: Fri, 28 Sep 2012 21:58:46 +0000 (-0700) Subject: more reasonable production timeout value on watchdog X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=731ed3bea8351c156683212066d06b64e9bee721;p=scpubgit%2FSystem-Introspector.git more reasonable production timeout value on watchdog --- diff --git a/lib/System/Introspector/Gatherer.pm b/lib/System/Introspector/Gatherer.pm index 9e92f2d..2c7da3b 100644 --- a/lib/System/Introspector/Gatherer.pm +++ b/lib/System/Introspector/Gatherer.pm @@ -64,7 +64,7 @@ sub new_from_spec { my $args = { introspectors => $arg{introspectors} }; if (defined $host) { my $remote = join '@', grep defined, $user, $host; - my $conn = Object::Remote::Connection->conn_from_spec($remote, watchdog_timeout => 10); + my $conn = Object::Remote::Connection->conn_from_spec($remote, watchdog_timeout => 120); $conn->maybe::start::connect; if (defined $sudo_user) { return $class->_new_bridged($conn->maybe::start::connect, $sudo, $args); @@ -76,7 +76,7 @@ sub new_from_spec { else { if (defined $sudo_user) { #TODO find a better way to achieve this result - my $conn = Object::Remote::Connection->conn_from_spec($sudo_user, watchdog_timeout => 10); + my $conn = Object::Remote::Connection->conn_from_spec($sudo_user, watchdog_timeout => 120); return $class->_new_direct($conn->maybe::start::connect, $args); }