[MOD] STR #4031: cups-polld should restart polling on error
Tim Waugh <[email protected]>
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] When cups-polld encounters an error, such as a network timeout, it should restart polling. In the case of a network timeout after the request is sent, the connection gets left in HTTP_POST_RECV state and can never leave it. Link: http://www.cups.org/str.php?L4031 Version: 1.5.2 _______________________________________________ cups-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/cups-bugs
0001-Restart-cups-polld-polling-on-error.patch
(text/plain, 745 B)
>From d6bb73c78d3c24ac0d4b7686c72654d3f3d96e26 Mon Sep 17 00:00:00 2001 From: Tim Waugh <[email protected]> Date: Thu, 23 Feb 2012 10:47:13 +0000 Subject: [PATCH] Restart cups-polld polling on error. --- scheduler/cups-polld.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/scheduler/cups-polld.c b/scheduler/cups-polld.c index 24e312e..d2a58fa 100644 --- a/scheduler/cups-polld.c +++ b/scheduler/cups-polld.c @@ -291,6 +291,7 @@ poll_server(http_t *http, /* I - HTTP connection */ fprintf(stderr, "ERROR: %s CUPS-Get-Printers failed: %s\n", prefix, cupsLastErrorString()); ippDelete(response); + restart_polling = 1; return (-1); } -- 1.7.7.6