From d07695353a5eb2454659acf86f53d2b242494651 Mon Sep 17 00:00:00 2001 From: sakolish Date: Wed, 5 Mar 2008 20:36:51 +0000 Subject: [PATCH] Increase default command timeout to 20 seconds - Line #719 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/PPCcli.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/perl-xCAT-2.0/xCAT/PPCcli.pm b/perl-xCAT-2.0/xCAT/PPCcli.pm index f2e4ee8f5..95ad71efb 100644 --- a/perl-xCAT-2.0/xCAT/PPCcli.pm +++ b/perl-xCAT-2.0/xCAT/PPCcli.pm @@ -71,7 +71,7 @@ sub connect { my $verbose = shift; my $pwd_prompt = 'assword: $'; my $continue = 'continue connecting (yes/no)?'; - my $timeout = 10; + my $timeout = 15; my $success = 0; my $pwd_sent = 0; my $expect_log; @@ -379,11 +379,6 @@ sub chsysstate { $ssh->send( "$cmd\r" ); return( [SUCCESS,"Success"] ); } - ##################################### - # Increase timeout for power command - ##################################### - my $timeout = 15; - ##################################### # Send command ##################################### @@ -721,7 +716,7 @@ sub send_cmd { # Set default Expect timeout ########################################## if ( !defined( $timeout )) { - $timeout = 10; + $timeout = 20; } ########################################## # Send command