Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Use Async MI_Session_Close to avoid possible deadlock.#115

Merged
dantraMSFT merged 2 commits intomasterfrom
dantra/issue112
Mar 26, 2018
Merged

Use Async MI_Session_Close to avoid possible deadlock.#115
dantraMSFT merged 2 commits intomasterfrom
dantra/issue112

Conversation

@dantraMSFT
Copy link
Copy Markdown
Contributor

The changes to use a single protocol thread can result in a deadlock if a callback submits blocking call from the protocol thread. This is seen with calls to MI_Session_Close. The fix is to close the session asynchronously.

Fixes #112
Fixes PowerShell/PowerShell#5685

@dantraMSFT dantraMSFT requested a review from paulcallen March 26, 2018 19:47
@dantraMSFT dantraMSFT changed the title use Async MI_Session_Close to avoid possible deadlock. Use Async MI_Session_Close to avoid possible deadlock. Mar 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deadlocks in PSSession stack after closed connection Remove-PSSession prevents subsequent New-PSSession calls

2 participants