avahi-browse makes host completion ugly and slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Debian) |
Fix Released
|
Unknown
|
|||
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash-completion
The latest version of bash-completion, synced into lucid, calls the following from /etc/bash-
avahi-browse -cpr _workstation._tcp
which is probably great on a small home network with 2 machines. However, there are typically over 100 Avahi/Bonjour devices on the same broadcast network as my laptop, and because they are generally laptops they are appearing and disappearing on the network very frequently, which means avahi will often hit its internal timeouts when trying to resolve things that are going away. This adds up to the above avahi-browse command always taking at least 5 seconds, which is really quite a lot of time to add to a tab completion.
Secondly, something is wrong with the way it is being called, as the first thing it always prints, to stderr, is:
WARNING: Unhandled message: interface=
(stderr is not redirected away by the bash-completion script). Depending on how many hosts have timed out, I will then get for each one, an error like:
Failed to resolve service 'bob-laptop [00:11:
All in all this makes for a very unpleasant experience if you are a sysadmin who uses ssh constantly!
avahi is a great feature, but please make this silent and optional for those of us whom it hurts!
ProblemType: Bug
Architecture: amd64
Date: Thu Jan 21 11:12:20 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3)
Package: bash-completion 1:1.1-3
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.utf8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: bash-completion
Uname: Linux 2.6.32-11-generic x86_64
summary: |
- avahi-browse makes host completion ugly, slow and broken + avahi-browse makes host completion ugly and slow |
description: | updated |
Changed in bash-completion (Ubuntu): | |
status: | New → Confirmed |
Changed in bash-completion (Debian): | |
status: | Unknown → Confirmed |
Changed in bash-completion (Debian): | |
status: | Confirmed → Fix Released |
Also, when machines come and go it works pretty bad to, even on a small network. I have network with 3 machines and if I try to tab-complete ssh when my wife just have turned of here computer I get a ugly error message.
Could you please remove this feature or at least make it configurable?