Skip to content

close connect after run ssh command #16

@zhao-carl

Description

@zhao-carl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions