diff options
author | Zdenek Dohnal <zdohnal@redhat.com> | 2021-04-13 15:44:14 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2021-05-27 08:48:41 +0200 |
commit | 1506d320eb8d3977bf62c4b4407043024d087b2b (patch) | |
tree | f496ed1e46dd7777550dd4fac3d3189c06dc4609 | |
parent | 3c5f31a4e100dba3b94c95cf2ad540e6af81cb8f (diff) |
backend/usb-libusb.c: Use 60s timeout for reading at backchannel
Some older models malfunction if timeout is too short.
Origin: upstream, https://github.com/OpenPrinting/cups/pull/174
Bug: https://github.com/OpenPrinting/cups/issues/160
Bug-Debian: https://bugs.debian.org/989073
-rw-r--r-- | backend/usb-libusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c index d6b0eb423..fbb0d9d89 100644 --- a/backend/usb-libusb.c +++ b/backend/usb-libusb.c @@ -1704,7 +1704,7 @@ static void *read_thread(void *reference) readstatus = libusb_bulk_transfer(g.printer->handle, g.printer->read_endp, readbuffer, rbytes, - &rbytes, 250); + &rbytes, 60000); if (readstatus == LIBUSB_SUCCESS && rbytes > 0) { fprintf(stderr, "DEBUG: Read %d bytes of back-channel data...\n", (int)rbytes); |