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

Handle ERROR_OPERATION_ABORTED result when a transfer is cancelled #63

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

martinling
Copy link
Contributor

This result can be seen on Windows 10 while shutting down a bulk Queue (I was stopping capture in Packetry).

I believe it should be mapped to TransferError::Cancelled, and everything works as expected when I do so. This is also how it's handled in libusb.

Since the error code was irreversibly mapped to TransferError::Unknown, it required patching nusb to find out what happened.

Perhaps TransferError::Unknown should have a field to retain an unexpected error code?

Seen on Windows 10 while shutting down a bulk Queue.
@martinling martinling force-pushed the error-operation-aborted branch from 527373e to d42ad06 Compare July 9, 2024 19:54
@kevinmehall kevinmehall merged commit bcab287 into kevinmehall:main Jul 10, 2024
7 checks passed
@kevinmehall
Copy link
Owner

Thanks! Opened #64 for the TransferError::Unknown suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants