Comment 73 for bug 113201

Revision history for this message
In , Mikel Ward (mikelward) wrote :

I did some timings using dnsResolve(), which seems to be what isInNet() calls if it's passed a host name rather than an IP address.

On my system, it takes almost exactly 15 seconds to give up trying to resolve a host name that doesn't exist (one where an nslookup on the Windows command line would say "DNS request timed out" rather than returning an IP address). During this time, Ethereal/Wireshark shows 8 attempts to resolve that name.

Why would Firefox be re-trying the request? If it gave up after the first attempt failed, the effect would be reduced substantially.

In the mean time, at least I've learned of the problems with isInNet, so I'll use a single call to dnsResolve() then pass the IP address result to each isInNet() test.