[Printing-architecture] [patch] CUPS 1.7.0: fix corrupted output for USB printers

Tim Waugh twaugh at redhat.com
Fri Nov 29 12:08:25 UTC 2013

When using the usb backend, if a usb-1 printer connected to a usb-2 hub
runs out of paper during the job the print output will be corrupted.

This is due to using a 60 second timeout for the libusb_bulk_transfer()
call. Timeout handling and retries are not reliable in every case, as
described here:

Quoting from that report:
So TL;DR: this a known and unfixable problem, and the solution is to
simply not cancel transfers (by setting a timeout) and then decide you
want to finish the transfer after all. Either decide you want to really
cancel the transfer, or just wait for it to finish normally.

Patch attached to change the timeout to 0 to wait indefinitely.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cups-usb-timeout.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/printing-architecture/attachments/20131129/313c2112/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfoundation.org/pipermail/printing-architecture/attachments/20131129/313c2112/attachment.sig>

More information about the Printing-architecture mailing list