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

Fix winusb issues under esxi #21

Merged
merged 15 commits into from
Jan 21, 2021
Merged

Fix winusb issues under esxi #21

merged 15 commits into from
Jan 21, 2021

Conversation

qpernil
Copy link
Contributor

@qpernil qpernil commented Jan 15, 2021

This PR adresses a 2s delay in the status endpoint when run on Windows under ESXi. It essentially does what PR#19 did for libusb but for WinUsb. It now also has a couple of bug fixes that were discovered while implementing & testing.

The delay happens in the 'drain pipe' WinUsb_ReadPipe call, which takes 2s to execute when running under ESXi, despite having set the timeout pipe policy to 10 ms. It Doesn't do that on a physical Windows machine. This is not a big deal now since we only reopen the device on errors.

@qpernil qpernil force-pushed the fix-winusb-esxi branch 3 times, most recently from 2a10735 to 9bac63f Compare January 15, 2021 17:41
Copy link

@GregDomzalski GregDomzalski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem reasonable given the information you've conveyed to me over Slack. It sounds like you've already done quite a bit of testing with these changes as well...

Thanks for taking care of this, Per!

@qpernil qpernil merged commit edbd86c into master Jan 21, 2021
@qpernil qpernil deleted the fix-winusb-esxi branch January 21, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants