]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
backend/usb-libusb.c: Revert enforcing read limits 174/head
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 13 Apr 2021 13:47:37 +0000 (15:47 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 13 Apr 2021 13:56:32 +0000 (15:56 +0200)
This commit reverts the change introduced by 2.2.12 [1] - its
implementation caused a regression with Lexmark filters.

[1]
https://github.com/apple/cups/commit/35e927f83529cd9b4bc37bcd418c50e307fced35

CHANGES.md
backend/usb-libusb.c

index b52237bf6b9886b703b8148ad7a0b05e814751c3..96636dbf62f18e16c06db289a047ab38668cf90b 100644 (file)
@@ -46,6 +46,7 @@ CUPS v2.4rc1 (Pending)
   `LPDConfigFile`, `KeepAliveTimeout`, `RIPCache`, and `SMBConfigFile`
   directives in `cupsd.conf` and `cups-files.conf`.
 - Use 60s timeout for reading at backchannel (Issue #160)
+- Revert enforcing read limits (Issue #72)
 
 
 CUPS v2.3.3op2 (February 1, 2021)
index fbb0d9d897466852ea8cdbe98a7d2347cb699290..89b5182f701fffd2449bd206389f3890000da005 100644 (file)
@@ -1721,7 +1721,8 @@ static void *read_thread(void *reference)
     * Make sure this loop executes no more than once every 250 miliseconds...
     */
 
-    if ((g.wait_eof || !g.read_thread_stop))
+    if ((readstatus != LIBUSB_SUCCESS || rbytes == 0) &&
+        (g.wait_eof || !g.read_thread_stop))
       usleep(250000);
   }
   while (g.wait_eof || !g.read_thread_stop);