Project

General

Profile

Bug #1602

diag_arp.php hangs when DNS server unreachable

Added by Chris Buechler almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/15/2011
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

diag_arp.php hangs for a long time (several minutes at least) when no DNS server is reachable, trying to do reverse lookups.

Associated revisions

Revision dd4bded7 (diff)
Added by Evgeny Yurchenko almost 8 years ago

Bug #1602. diag_arp.php hangs when DNS server unreachable.

History

#1 Updated by Evgeny Yurchenko almost 8 years ago

what would be solution here? it's just hanging gethostbyaddr()
Many things slow when dns is unreachable -(

#2 Updated by Chris Buechler almost 8 years ago

yeah I'm sure this isn't the only affected page. Not sure of the best solution. If before doing a reverse lookup on every entry it could try just one lookup (maybe google.com or something) and if it fails, just skip all lookups on that page load. Others may have better ideas

#3 Updated by Jim Pingle almost 8 years ago

Testing for a known host and skipping if that fails could work, as long as it only triggered on timeout and not a negative response.

Alternately, we could default hostname resolution to off, and make a button to reload the form and resolve hostnames.

#5 Updated by Ermal Lu├ži almost 8 years ago

  • Status changed from New to Feedback

#6 Updated by Andreas Bochem almost 8 years ago

Looks good on 2.0-RC3 (amd64) built on Tue Jun 21 23:37:22 EDT 2011.

My current test system does not have a working connection to any DNS server,
yet diag_arp.php only takes a few seconds and then just displays the ARP table without hostnames.

#7 Updated by Chris Buechler almost 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF