Skip to content

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

Merged
wmiaw merged 5 commits into
masterfrom
release-mastertoken
May 30, 2018
Merged

Correct (hopefully) master token lock cleanup in MslControl.#276
wmiaw merged 5 commits into
masterfrom
release-mastertoken

Conversation

@wmiaw
Copy link
Copy Markdown
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 aliddeke and quidryan 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