Closed Bug 533672 Opened 15 years ago Closed 13 years ago

startup can hang with dns timeouts in nsProfileLock

Categories

(Core Graveyard :: Profile: BackEnd, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 433665

People

(Reporter: wolfiR, Unassigned)

References

Details

There are cases where the resolver library cannot find an IP for a name. This would cause hanging of startup until the DNS timeout has been reached (60 seconds usually).

http://mxr.mozilla.org/mozilla-central/source/profile/dirserviceprovider/src/nsProfileLock.cpp#338

PR_GetHostByName() blocks during the timeout.

After all that seems to be pretty old code which should be revisited.
I'm not sure if the IP address is the right choice at all.
So I see two possible solutions:
- don't use an ip address but probably just the hostname
- get an ip address without asking DNS
wow, I have to dupe my own two bugs ;-)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.