[Bug 1254357] [NEW] Avahi-daemon-check-dns.sh takes too much time on every connecting to network
wm
1254357 at bugs.launchpad.net
Sat Nov 23 23:54:40 UTC 2013
Public bug reported:
Every time I connect to network using NetworkManager, 10s is spent on
checking if avahi may be run, which is majority of connecting time.
Control flow is as follows -> NetworkManager -> /sbin/resolvconf ->
/etc/resolvconf/update.d/libc -> /etc/resolvconf/update-libc.d/avahi-
daemon -> /usr/lib/avahi/avahi-daemon-check-dns.sh -> host -t soa .local
If everything is alright (no .local domain, avahi may be run) host shall fail due to timeout, which by default takes 10s.
I believe either dns lookup timeout should be lowered (host -t soa -W 1 .local) or the avahi-daemon-check-dns.sh script shall be run asynchronously.
It is particularly annoying when waking up from suspend - resume takes
3s, main part of network configuration 4s, but then avahi 10s.
To reproduce:
nmcli d disconnect iface <interface>; time nmcli c up id <your network>
chmod -x /usr/lib/avahi/avahi-daemon-check-dns.sh
nmcli d disconnect iface <interface>; time nmcli c up id <your network>
Or just:
time /usr/lib/avahi/avahi-daemon-check-dns.sh
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: avahi-daemon 0.6.31-2ubuntu4.1
ProcVersionSignature: Ubuntu 3.11.0-14.21-generic 3.11.7
Uname: Linux 3.11.0-14-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Sun Nov 24 00:36:05 2013
InstallationDate: Installed on 2013-11-16 (7 days ago)
InstallationMedia: Xubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016)
MarkForUpload: True
SourcePackage: avahi
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: avahi (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug package-from-proposed saucy
** Patch added: "Proposed fix: lower dns lookup timeout"
https://bugs.launchpad.net/bugs/1254357/+attachment/3915667/+files/avahi-daemon-check-dns-lower-timeout.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1254357
Title:
Avahi-daemon-check-dns.sh takes too much time on every connecting to
network
Status in “avahi” package in Ubuntu:
New
Bug description:
Every time I connect to network using NetworkManager, 10s is spent on
checking if avahi may be run, which is majority of connecting time.
Control flow is as follows -> NetworkManager -> /sbin/resolvconf ->
/etc/resolvconf/update.d/libc -> /etc/resolvconf/update-libc.d/avahi-
daemon -> /usr/lib/avahi/avahi-daemon-check-dns.sh -> host -t soa
.local
If everything is alright (no .local domain, avahi may be run) host shall fail due to timeout, which by default takes 10s.
I believe either dns lookup timeout should be lowered (host -t soa -W 1 .local) or the avahi-daemon-check-dns.sh script shall be run asynchronously.
It is particularly annoying when waking up from suspend - resume takes
3s, main part of network configuration 4s, but then avahi 10s.
To reproduce:
nmcli d disconnect iface <interface>; time nmcli c up id <your network>
chmod -x /usr/lib/avahi/avahi-daemon-check-dns.sh
nmcli d disconnect iface <interface>; time nmcli c up id <your network>
Or just:
time /usr/lib/avahi/avahi-daemon-check-dns.sh
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: avahi-daemon 0.6.31-2ubuntu4.1
ProcVersionSignature: Ubuntu 3.11.0-14.21-generic 3.11.7
Uname: Linux 3.11.0-14-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Sun Nov 24 00:36:05 2013
InstallationDate: Installed on 2013-11-16 (7 days ago)
InstallationMedia: Xubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016)
MarkForUpload: True
SourcePackage: avahi
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1254357/+subscriptions
More information about the foundations-bugs
mailing list