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@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