Changeset 236

Show
Ignore:
Timestamp:
03/30/07 15:55:10 (2 years ago)
Author:
kindlund
Message:

Updated FW code, so that DNS lookups will fail after 10 seconds (instead of 2 minutes).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/trunk/lib/HoneyClient/Manager/FW.pm

    r234 r236  
    24552455    my $errorcode  = q{}; 
    24562456    my $res        = Net::DNS::Resolver->new(); 
     2457    # TODO: Make these timeouts non-static. 
     2458    $res->tcp_timeout(10); 
     2459    $res->udp_timeout(10); 
    24572460    my @iplist     = (); 
    24582461    my %resolvedip = (); 
     
    29842987    my $resolver = Net::DNS::Resolver->new(); 
    29852988 
     2989    # TODO: Make these timeouts non-static. 
     2990    $resolver->tcp_timeout(10); 
     2991    $resolver->udp_timeout(10); 
     2992 
    29862993    # Extract arguments -  passed in 
    29872994    my ($host) = @_;