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

close connect after run ssh command #16

Open
zhao-carl opened this issue Mar 10, 2016 · 0 comments
Open

close connect after run ssh command #16

zhao-carl opened this issue Mar 10, 2016 · 0 comments

Comments

@zhao-carl
Copy link

when i use Run to do something, after thati find a lot of tcp connect and not close.
i see the source code, like this:
func (ssh_conf *MakeConfig) Run(command string) (string, error) {
.....
defer func() {
session.Close()
} ()
...
}

the session is closed, but the tcp connect is not closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant