Date: Mon, 2 Jan 2017 03:18:26 +0100 From: Jens Redecker <jens.redecker@gmx.de> To: chess@chessgriffin.com, freebsd-doc@FreeBSD.org Subject: cupsd.conf JobRetryLimit =0 not mentioned in documentation Message-ID: <af3f2247-828c-8b8e-9027-efa7c7c289da@gmx.de>
index | next in thread | raw e-mail
Hi there, the documentation of cupsd.conf https://www.freebsd.org/cgi/man.cgi?query=cupsd.conf mentions " *JobRetryLimit */count/ Specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "5"." However i find it should be mentioned that setting it to "0" lets cups wait for an unlimited amount of time/retries. As it says starting from line 3145 of https://opensource.apple.com/source/cups/cups-327/cups/scheduler/job.c?txt if (job->tries > JobRetryLimit &&*JobRetryLimit > 0*) { /* * Too many tries... */ snprintf(buffer, sizeof(buffer), "Job aborted after %d unsuccessful attempts.", JobRetryLimit); job_state = IPP_JOB_ABORTED; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); } *else* { /* * Try again in N seconds... */ snprintf(buffer, sizeof(buffer), "Job held for %d seconds since it could not be sent.", JobRetryInterval); job->hold_until = time(NULL) + JobRetryInterval; job_state = IPP_JOB_HELD; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } Regards Jenshelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?af3f2247-828c-8b8e-9027-efa7c7c289da>
