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

Blocking PC/SC calls are not terminated when the client is disconnected #43

Closed
emaxx-google opened this issue Oct 17, 2016 · 0 comments
Closed
Assignees
Labels

Comments

@emaxx-google
Copy link
Collaborator

There's a problem with the Connector app that it doesn't free the handles obtained by a client when it's terminated during a blocking PC/SC call (e.g. the potentially infinitely working SCardGetStatusChange function).

One of the effects is that a terminated and then quickly restarted client may be blocked for considerable amount of time or even forever if it was using blocking PC/SC calls.

The probable reason for the bug is that our PC/SC-Lite port doesn't seem to contain the code that would terminate blocking PC/SC calls when the client disconnection event is received. The cleanup of the client's handles seems to be is effectively postponed until the last blocking call from that client is finished, which is wrong.

/cc @dskaram

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