Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cupsEnumDests: Provide notification of print queue additions and removals #5024
CUPS version: latest snapshot of this repo
I tested by removing some printers after the enumeration started, however, the callback function was not called with the
Right now we don't track queue removals for cupsEnumDests since a) that is a fairly rare event and b) the cost to poll or to setup a subscription to watch for queues getting add/removed is prohibitive.
I'll keep this bug around to add support for this in a future release when using a large (or indefinite) timeout, however for typical usage (building a list of printers for a print dialog) this should not be a serious issue.
changed the title
cupsEnumDests() does not notify removal of printers during enumeration.
Jun 8, 2017
referenced this issue
Jun 8, 2017
Yes, I actually had trouble with printers discovered via Avahi I guess.
When I stop the cups service on the virtual machine, the printer removal isn't notified in my program.
A longer time ago we (at SUSE) noticed a major load issue
I guess the developer(s) of that functionality had developed
Continuously polling does not scale for big (up to huge)
Instead of automatically and continuously polling