Red Hat Bugzilla – Bug 996664
web interface for 'add printer' does not allow backend enough time for discovery
Last modified: 2013-10-14 13:16:38 EDT
It takes a little over five seconds for the back end to discover printers for me.
When clicking 'Add Printer' at http://localhost:631/admin/ the page loads in five seconds. I *sometimes* see my printers, if I'm lucky. But isn't the timeout supposed to be ten seconds? How can I change it?
This was changed upstream by this commit:
Author: mike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Date: Fri Mar 4 17:50:45 2011 +0000
Reduce printer discovery time to 5 second to prevent "web page is hung" bugs.
git-svn-id: http://svn.easysw.com/public/cups/trunk@9576 7a7537e8-13f0-0310-91df-b6672ffda945
diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c
index 1bfd075..81600d4 100644
@@ -1026,7 +1026,7 @@ do_am_printer(http_t *http, /* I - HTTP connection */
fputs("DEBUG: Getting list of devices...\n", stderr);
current_device = 0;
- if (cupsGetDevices(http, 30, CUPS_INCLUDE_ALL, CUPS_EXCLUDE_NONE,
+ if (cupsGetDevices(http, 5, CUPS_INCLUDE_ALL, CUPS_EXCLUDE_NONE,
(void *)title) == IPP_OK)
Hm, not configurable?
Or perhaps I can try to learn about python threading and parallelise the two database connections and all the SNMP probing in my discovery backend, and try to bring it consistently down under 5 seconds...
I've changed it to 10s in:
cups-1.6.4-2.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.6.4-2.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
cups-1.6.4-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.