GoogleChromeLabs / chromeos_smart_card_connector

Smart Card Connector App for Chrome OS
https://chrome.google.com/webstore/detail/smart-card-connector/khpfeaanjngmcnplbdlpegiifgpfgdco
Apache License 2.0
133 stars 50 forks source link

WIP fix CCID polling transfer restart #1109

Closed emaxx-google closed 5 months ago

emaxx-google commented 8 months ago

We should support restarting the interrupt transfer after it's been stopped in the past.

This fixes the breakage of the polling transfer after the "insert card => SCardConnect => SCardDisconnect => remove card" scenario, which led the application to actively poll the reader every 400 ms instead of a 10-minute transfer, which in turn led to excessively big number of inflight chrome.usb transfers and various breakages in production.

github-actions[bot] commented 8 months ago

Continuous Integration: All tests passed. C/C++ test coverage: 73.20% lines.

emaxx-google commented 5 months ago

This was landed in different PRs.