Changeset 1518

Show
Ignore:
Timestamp:
04/15/08 08:17:13 (4 weeks ago)
Author:
kindlund
Message:

Encountered rare error, where retry rate would hit 5, yet the 5th connection attempt was successful. Updating logic accordingly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/trunk/etc/honeyclient.xml

    r1499 r1518  
    330330                /var/log/messages 
    331331            </dhcp_log> 
     332            <max_connect_retries description="When the VMware Server attempts to connect to any VM, it will repeatedly attempt to connect to the VM if the first attempt fails, for a maximum number of times specified by this value.  Generally, this value should not be changed, unless the host system has an exceptionally slow disk - in which case, increasing this value may help." default="5"> 
     333                5 
     334            </max_connect_retries> 
    332335            <!-- HoneyClient::Manager::VM::Clone Options --> 
    333336            <Clone> 
  • honeyclient/trunk/lib/HoneyClient/Manager/VM.pm

    r1499 r1518  
    654654# ever lost, this indicates how may reconnection attempts  
    655655# will be made before failing completely. 
    656 our $MAX_RETRIES    : shared = 5
     656our $MAX_RETRIES    : shared = getVar(name => "max_connect_retries")
    657657 
    658658# The process ID of the SOAP server daemon, once created. 
     
    885885        $count++; 
    886886    } while (!$status && $count < $MAX_RETRIES); 
    887     if ($count >= $MAX_RETRIES) { 
     887    if (!$status && ($count >= $MAX_RETRIES)) { 
    888888        my ($errorNumber, $errorString) = $server->get_last_error(); 
    889889        $LOG->warn("Could not connect to VM (" . $config . "). (" .