[Bug 389805] New: Firefox uses gethostbyname to resolve host name
https://bugzilla.novell.com/show_bug.cgi?id=389805 Summary: Firefox uses gethostbyname to resolve host name Product: openSUSE 11.0 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Firefox AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de CC: mmeeks@novell.com, captain.magnus@opensuse.org Found By: --- In profile/dirserviceprovider/src/nsProfileLock.cpp, nsProfileLock::LockWithSymlink() firefox tries to resolve the hostname (PR_GetHostByName) and uses the resulting IP address for a symlink used for locking. That causes DNS timeouts on systems where the hostname is not resolvable such as laptops. Looks like the code is more or less obsolete so it could probably removed completely. It could not have worked properly in the past either since openSUSE typically mapped the hostname to 127.0.0.2. So IsSymlinkStaleLock() would true on all systems that share the home directory. If you don't want to remove the code you could use getifaddrs() instead to find the systems' IP addresses. getifaddrs() doesn't use DNS therefore doesn't cause timeouts. See also bug 383336 for a lengthy discussion about unecessary dns timeouts. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=389805
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=389805#c1
JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=389805
User lnussel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=389805#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=389805
User captain.magnus@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=389805#c3
Magnus Boman
participants (1)
-
bugzilla_noreply@novell.com