Added connect timeout configurable through site.fsptimeout
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a588956b7e
commit
5e20327791
@ -221,11 +221,18 @@ sub handler {
|
||||
##########################################################################
|
||||
sub connect {
|
||||
|
||||
my $request = shift;
|
||||
my $req = shift;
|
||||
my $server = shift;
|
||||
my $verbose = $request->{verbose};
|
||||
my $verbose = $req->{verbose};
|
||||
my $timeout = $req->{fsptimeout};
|
||||
my $lwp_log;
|
||||
|
||||
##################################
|
||||
# Use timeout from site table
|
||||
##################################
|
||||
if ( !$timeout ) {
|
||||
$timeout = 30;
|
||||
}
|
||||
##################################
|
||||
# Get userid/password
|
||||
##################################
|
||||
@ -262,7 +269,7 @@ sub connect {
|
||||
##################################
|
||||
my $url = "https://$server/cgi-bin/cgi?form=2";
|
||||
$ua->cookie_jar( $cookie );
|
||||
$ua->timeout(30);
|
||||
$ua->timeout( $timeout );
|
||||
|
||||
##################################
|
||||
# Submit logon
|
||||
@ -1696,3 +1703,4 @@ sub all_clear {
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user