Skip to content
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

Release pending USB transactions before device close #28

Open
harryhaaren opened this issue Jul 14, 2017 · 0 comments
Open

Release pending USB transactions before device close #28

harryhaaren opened this issue Jul 14, 2017 · 0 comments
Assignees
Labels

Comments

@harryhaaren
Copy link
Member

With libusb debug enabled (export LIBUSB_DEBUG=2..5) a bunch of warnings/errors are printed. Some are not so bad (timeouts are expected at debug=5), however upon close with debug=2 a bunch of valid warnings/errors are printed:

libusb: error [do_close] Device handle closed while transfer was still being processed, but the device is still connected as far as we know
libusb: error [do_close] A cancellation hasn't even been scheduled on the transfer for which the device is closing
libusb: error [release_interface] release interface failed, error -1 errno 95
ctlra_dev_impl_usb_close:Ctrla Warning: release interface ret: -99

Cancelling the pending reads (or just not issuing new ones and letting the existing ones time-out) should solve this issue.

@harryhaaren harryhaaren self-assigned this Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant