Skip to content

usb-transfer: Work around libgusb cancellation issue

Benjamin Berg requested to merge benzea/add-usb-cancellation-workaround into master

We have plenty of code paths where a transfer may be cancelled before it is submitted. Unfortunately, libgusb up to and including version 0.3.6 are not handling that case correctly (due to libusb ignoring cancellation on transfers that are not yet submitted).

Work around this, but do so in a somewhat lazy fashion that is not entirely race free.

Closes: #306 (closed)

Merge request reports