openbsd-ports/print/cups/patches/patch-backend_ipp_c

25 lines
818 B
Plaintext

Increase timeout for the PPD file to be copied so that it doesn't fail
on low-end configurations.
Index: backend/ipp.c
--- backend/ipp.c.orig
+++ backend/ipp.c
@@ -661,7 +661,7 @@ main(int argc, /* I - Number of command-line args
http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, cupsEncryption(), 1,
0, NULL);
- httpSetTimeout(http, 30.0, timeout_cb, NULL);
+ httpSetTimeout(http, 90.0, timeout_cb, NULL);
/*
* See if the printer supports SNMP...
@@ -2459,7 +2459,7 @@ monitor_printer(
http = httpConnect2(monitor->hostname, monitor->port, NULL, AF_UNSPEC,
monitor->encryption, 1, 0, NULL);
- httpSetTimeout(http, 30.0, timeout_cb, NULL);
+ httpSetTimeout(http, 90.0, timeout_cb, NULL);
if (username[0])
cupsSetUser(username);