[cups/f19] Increase web interface get-devices timeout to 10s (bug #996664).

Tim Waugh twaugh at fedoraproject.org
Fri Aug 16 15:46:12 UTC 2013


commit 87fad28bb70ed5cc4f00854c2f05cdf4b1bbfc65
Author: Tim Waugh <twaugh at redhat.com>
Date:   Fri Aug 16 16:03:17 2013 +0100

    Increase web interface get-devices timeout to 10s (bug #996664).
    
    Resolves: rhbz#996664
    
    (cherry picked from commit ae71d87ad682bc7e1f447443c5fc399e6f57f2f2)

 cups-web-devices-timeout.patch |   19 +++++++++++++++++++
 cups.spec                      |    8 +++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/cups-web-devices-timeout.patch b/cups-web-devices-timeout.patch
new file mode 100644
index 0000000..fa3a320
--- /dev/null
+++ b/cups-web-devices-timeout.patch
@@ -0,0 +1,19 @@
+diff -up cups-1.7rc1/cgi-bin/admin.c.web-devices-timeout cups-1.7rc1/cgi-bin/admin.c
+--- cups-1.7rc1/cgi-bin/admin.c.web-devices-timeout	2013-05-29 12:51:34.000000000 +0100
++++ cups-1.7rc1/cgi-bin/admin.c	2013-08-16 16:01:17.308264287 +0100
+@@ -1019,13 +1019,13 @@ do_am_printer(http_t *http,		/* I - HTTP
+     }
+ 
+    /*
+-    * Scan for devices for up to 30 seconds...
++    * Scan for devices for up to 10 seconds...
+     */
+ 
+     fputs("DEBUG: Getting list of devices...\n", stderr);
+ 
+     current_device = 0;
+-    if (cupsGetDevices(http, 5, CUPS_INCLUDE_ALL, CUPS_EXCLUDE_NONE,
++    if (cupsGetDevices(http, 10, CUPS_INCLUDE_ALL, CUPS_EXCLUDE_NONE,
+                        (cups_device_cb_t)choose_device_cb,
+ 		       (void *)title) == IPP_OK)
+     {
diff --git a/cups.spec b/cups.spec
index f7a01a3..9c6b5cc 100644
--- a/cups.spec
+++ b/cups.spec
@@ -11,7 +11,7 @@ Summary: CUPS printing system
 Name: cups
 Epoch: 1
 Version: 1.6.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Url: http://www.cups.org/
@@ -65,6 +65,7 @@ Patch34: cups-avahi-no-threaded.patch
 Patch35: cups-gz-crc.patch
 Patch36: cups-ipp-multifile.patch
 Patch37: cups-full-relro.patch
+Patch38: cups-web-devices-timeout.patch
 
 Patch100: cups-lspp.patch
 
@@ -254,6 +255,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
 %patch36 -p1 -b .ipp-multifile
 # Full relro (bug #996740).
 %patch37 -p1 -b .full-relro
+# Increase web interface get-devices timeout to 10s (bug #996664).
+%patch38 -p1 -b .web-devices-timeout
 
 %if %lspp
 # LSPP support.
@@ -640,6 +643,9 @@ rm -f %{cups_serverbin}/backend/smb
 %{_mandir}/man5/ipptoolfile.5.gz
 
 %changelog
+* Fri Aug 16 2013 Tim Waugh <twaugh at redhat.com> - 1:1.6.3-7
+- Increase web interface get-devices timeout to 10s (bug #996664).
+
 * Thu Aug 15 2013 Tim Waugh <twaugh at redhat.com> - 1:1.6.3-6
 - Build with full read-only relocations (bug #996740).
 


More information about the scm-commits mailing list