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

[CommandExecutor] Move ObjectSpace finalizer logic into executor. #669

Merged
merged 1 commit into from
Mar 28, 2015

Conversation

fnichol
Copy link
Contributor

@fnichol fnichol commented Mar 28, 2015

Any remote shell cleanup needs to be handled by the CommandExecutor so
that it attempts to close the last opened shell. Previous to this
commit, the shell cleanup was in Kitchen::Transport::Winrm but only
knew about the initially opened shell.

The ShellCloser class was extracted to full class status as the user
of CommandExecutor now has to supply a closer in the constructor if
ObjectSpace cleanup behavior is desired (the default is to do no
cleanup).

Closes #656

Any remote shell cleanup needs to be handled by the CommandExecutor so
that it attempts to close the last opened shell. Previous to this
commit, the shell cleanup was in `Kitchen::Transport::Winrm` but only
knew about the **initially** opened shell.

The `ShellCloser` class was extracted to full class status as the user
of `CommandExecutor` now has to supply a closer in the constructor if
ObjectSpace cleanup behavior is desired (the default is to do no
cleanup).

Closes #656
@fnichol
Copy link
Contributor Author

fnichol commented Mar 28, 2015

So much better!

1015

fnichol added a commit that referenced this pull request Mar 28, 2015
[CommandExecutor] Move ObjectSpace finalizer logic into executor.
@fnichol fnichol merged commit 0485feb into master Mar 28, 2015
@fnichol fnichol deleted the command-executor-finalizer branch March 28, 2015 22:13
@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
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.

Windows 7 fails with 'maximum number of 15 concurrent operations' on second converge
1 participant