patch-backend_ipp_c 921 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-backend_ipp_c,v 1.17 2017/03/29 20:50:51 ajacoutot Exp $
  2. Increase timeout for the PPD file to be copied so that it doesn't fail
  3. on low-end configurations.
  4. --- backend/ipp.c.orig Tue Mar 28 20:26:53 2017
  5. +++ backend/ipp.c Wed Mar 29 20:08:58 2017
  6. @@ -667,7 +667,7 @@ main(int argc, /* I - Number of command-line args
  7. http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, cupsEncryption(), 1,
  8. 0, NULL);
  9. - httpSetTimeout(http, 30.0, timeout_cb, NULL);
  10. + httpSetTimeout(http, 90.0, timeout_cb, NULL);
  11. /*
  12. * See if the printer supports SNMP...
  13. @@ -2415,7 +2415,7 @@ monitor_printer(
  14. http = httpConnect2(monitor->hostname, monitor->port, NULL, AF_UNSPEC,
  15. monitor->encryption, 1, 0, NULL);
  16. - httpSetTimeout(http, 30.0, timeout_cb, NULL);
  17. + httpSetTimeout(http, 90.0, timeout_cb, NULL);
  18. if (username[0])
  19. cupsSetUser(username);