-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endless repeated jobs with LinkSys PSUS4 #953
Comments
CUPS.org User: mike The current linksys print servers are known to be buggy (we recently added an option to force IPP/1.0 since they will crash if sent a 1.1 request!) so I'm not sure there is much point to fixing things for this particular print server. It doesn't appear that the user has tried changing the device URI to:
I don't think this will fix the actual problem, but that is the current workaround until Linksys fixes their buggy implementation... Not handling IPP_SERVICE_UNAVAILABLE will cause problems with some printers since that status is returned for an off-line or busy printer in some cases. Changing cupsDoFileRequest() to set the status to IPP_ERROR might be appropriate, however I will need to investigate the API implications. |
CUPS.org User: twaugh.redhat How about the above patch? The idea is that if we see IPP_SERVICE_UNAVAILABLE and got NULL from cupsDoFileRequest, we have hit an error that can't be resolved. |
CUPS.org User: mike That's a possible solution, but I'd prefer to use a dedicated error constant (e.g. IPP_ERROR) if we can. Will let you know... |
CUPS.org User: mike Please see the attached (simple) patch which should resolve the issue for all possible cases. |
CUPS.org User: mike Fixed in CVS - the anonymous CVS repository will be updated at midnight EST. |
"cups-ippfail.patch": --- cups-1.1.22rc1/backend/ipp.c 2004-10-14 08:41:52.536559206 +0100
|
"str953.patch": Index: util.cRCS file: /development/cvs/cups/cups/util.c,v
|
Version: 1.1.22rc1
CUPS.org User: twaugh.redhat
When submitting IPP jobs, the job is endlessly repeated if a corrupt IPP response is received on completion. This is the case with at least one LinkSys PSUS4 device which claims to speak IPP/1.0.
In this case, ippRead will set lastError to IPP_SERVICE_UNAVAILABLE, and the ipp backend catches it here:
It retries the job (it doesn't cause an 'ERROR') even though it is bound to fail again.
I would suggest removing 'ipp_status == IPP_SERVICE_UNAVAILABLE ||' to prevent this, or else setting a different error code in ippRead in this situation.
Original bug report:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=135502
The text was updated successfully, but these errors were encountered: