Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/crypto/ssh: *Client Dial() example does not call Close() #41906
The example for ssh.Dial in the x/crypto/ssh package opens a
I didn't realize that the Client needed to be closed, and as a result, had a huge number of open SSH sessions on a server.
Related to this, the doc summary for the *Client only shows methods directly on the Client, not inherited methods -
There are a few stackoverflow questions that indicate similar confusion