Bug#280718: gnome-cups-manager: floods central cups printer server with requests

Ross Burton Ross Burton <ross@burtonini.com>, 280718@bugs.debian.org
Tue, 14 Dec 2004 20:01:00 +0000


On Tue, 2004-12-14 at 19:36 +0100, Emilio Jes=C3=BAs Gallego Arias wrote:
> The problem it's that gnome-cups-icon does polling at very high rate, ~
> 3 times per second as I see in the logs. Maybe making the poll time
> value configurable would be a solution (in this case I'll set it a 20
> seconds, so cupsd doesn't eat so much cpu)

>From gnome-cups-printer.c:

#define UPDATE_TIMEOUT 5000
...
update_timeout_id =3D g_timeout_add (UPDATE_TIMEOUT,
                                   update_printers_timeout,
                                   NULL);

So the printer timeout should be 3 seconds.  There is another timeout
which obtains the queue details, this is only ran when the exact queue
is requested and runs every 5 seconds.

Of course, if you can provide proof that g-c-m is sending more requests
that it should, that is good.

Ross
--=20
Ross Burton                                 mail: ross@burtonini.com
                                          jabber: ross@burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF