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

Correct (hopefully) master token lock cleanup in MslControl. #276

Merged
merged 5 commits into from
May 30, 2018

Conversation

wmiaw
Copy link
Contributor

@wmiaw wmiaw commented May 25, 2018

Possibly fixes #208: Do not release the master token (an extra time) in RequestService.execute() after the recursive call is made, but make sure to release it in all other cases.

Also make sure to release the master token if an exception is thrown while retrieving the user ID token in buildRequest(), buildResponse().

wmiaw added 5 commits May 25, 2018 11:40
…ter as part of its contructor, same as the Java and C++ implementations.

Create JavaScript Semaphore class for synchronized access to a limited resource.
… retrieving the user ID token in buildRequest(), buildResponse().

Remove impossible call to release the master token in ReceiveService.call() when in trusted services mode.
Do not release the master token (an extra time) in RequestService.execute() after the recursive call is made, but make sure to release it in all other cases.
@wmiaw wmiaw added the bug label May 25, 2018
@wmiaw wmiaw self-assigned this May 25, 2018
@wmiaw wmiaw requested review from quidryan and aliddeke May 25, 2018 20:56
@wmiaw wmiaw merged commit 62532cf into master May 30, 2018
@wmiaw wmiaw deleted the release-mastertoken branch May 30, 2018 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IllegalMonitorStateException thrown from releaseMasterToken()
1 participant