Add warning when DNSLookupTimeout is reach. Thanks to gitdevmod for the report.

This commit is contained in:
Darold Gilles 2016-01-10 23:56:17 +01:00
parent 410e36aac2
commit f206dbde83
1 changed files with 3 additions and 1 deletions

View File

@ -1779,7 +1779,9 @@ sub _gethostbyaddr
};
if ($@) {
$CACHE{$ip} = undef;
#printf "_gethostbyaddr timeout : %s\n", $ip;
if (!$self->{QuietMode}) {
warn "_gethostbyaddr timeout reach for ip: $ip, timeout can be adjusted with directive DNSLookupTimeout\n";
}
}
else {
$CACHE{$ip} = $host;