[cups] Increase web interface get-devices timeout to 10s (bug #996664).
Tim Waugh
twaugh at fedoraproject.org
Fri Aug 16 15:20:19 UTC 2013
commit ae71d87ad682bc7e1f447443c5fc399e6f57f2f2
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
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 6f450b7..2f16f7b 100644
--- a/cups.spec
+++ b/cups.spec
@@ -14,7 +14,7 @@ Summary: CUPS printing system
Name: cups
Epoch: 1
Version: 1.7
-Release: 0.24.%{prever}%{?dist}
+Release: 0.25.%{prever}%{?dist}
License: GPLv2
Group: System Environment/Daemons
Url: http://www.cups.org/
@@ -70,6 +70,7 @@ Patch37: cups-gz-crc.patch
Patch38: cups-build.patch
Patch39: cups-ipp-multifile.patch
Patch40: cups-full-relro.patch
+Patch41: cups-web-devices-timeout.patch
Patch100: cups-lspp.patch
@@ -262,6 +263,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
%patch39 -p1 -b .ipp-multifile
# Full relro (bug #996740).
%patch40 -p1 -b .full-relro
+# Increase web interface get-devices timeout to 10s (bug #996664).
+%patch41 -p1 -b .web-devices-timeout
%if %lspp
# LSPP support.
@@ -636,6 +639,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.7-0.25.rc1
+- Increase web interface get-devices timeout to 10s (bug #996664).
+
* Thu Aug 15 2013 Tim Waugh <twaugh at redhat.com> - 1:1.7-0.24.rc1
- Build with full read-only relocations (bug #996740).
More information about the scm-commits
mailing list