[Pkg-utopia-maintainers] Bug#598612: /usr/bin/avahi-browse: bash completion slow after machine in lan was shut down

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Sep 30 13:09:14 UTC 2010


Package: avahi-utils
Version: 0.6.27-2
Severity: normal
File: /usr/bin/avahi-browse

Hello,

bash completion for ssh calls

	avahi-browse -cpr _workstation._tcp

I often hit the problem that my wife shuts down her machine while I
continue to work on mine.  Still after the machine is off it's still in
avahi's cache and the request to resolve (-r) results in a timeout:

	ukleinek at cassiopeia:~$ set +x; time avahi-browse -cpr _workstation._tcp 
	+;eth1;IPv6;cepheus\032\09100\05811\05895\058bb\05842\058d6\093;Workstation;local
	+;eth1;IPv6;cassiopeia\032\09100\05816\0586f\058b2\0582e\058ae\093;Workstation;local
	+;eth1;IPv4;cepheus\032\09100\05811\05895\058bb\05842\058d6\093;Workstation;local
	+;eth1;IPv4;cassiopeia\032\09100\05816\0586f\058b2\0582e\058ae\093;Workstation;local
	=;eth1;IPv6;cassiopeia\032\09100\05816\0586f\058b2\0582e\058ae\093;Workstation;local;cassiopeia.local;fe80::216:6fff:feb2:2eae;9;
	=;eth1;IPv4;cassiopeia\032\09100\05816\0586f\058b2\0582e\058ae\093;Workstation;local;cassiopeia.local;192.168.178.20;9;
	Failed to resolve service 'cepheus [00:11:95:bb:42:d6]' of type '_workstation._tcp' in domain 'local': Timeout reached
	Failed to resolve service 'cepheus [00:11:95:bb:42:d6]' of type '_workstation._tcp' in domain 'local': Timeout reached

	real	0m5.029s
	user	0m0.004s
	sys	0m0.004s

5s is really unacceptable for tab completion.

Restarting avahi-daemon helps, but having to bother about this is really
annoying.

It would be great if avahi-daemon would notice after the first timeout
that the host is down and remove it from its cache.

Thanks
Uwe

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing-proposed-updates
  APT policy: (900, 'testing-proposed-updates'), (900, 'proposed-updates'), (900, 'testing'), (900, 'stable'), (600, 'unstable'), (102, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.36-rc5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages avahi-utils depends on:
ii  avahi-daemon                  0.6.27-2   Avahi mDNS/DNS-SD daemon
ii  libavahi-client3              0.6.27-2   Avahi client library
ii  libavahi-common3              0.6.27-2   Avahi common library
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib
ii  libdbus-1-3                   1.2.24-3   simple interprocess messaging syst
ii  libgdbm3                      1.8.3-9    GNU dbm database routines (runtime

avahi-utils recommends no packages.

avahi-utils suggests no packages.

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list