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

x/crypto/ssh: Semantics of Conn.Wait and Conn.Close unclear in docs #37074

Open
darkfeline opened this issue Feb 6, 2020 · 1 comment
Open

x/crypto/ssh: Semantics of Conn.Wait and Conn.Close unclear in docs #37074

darkfeline opened this issue Feb 6, 2020 · 1 comment

Comments

@darkfeline
Copy link
Contributor

@darkfeline darkfeline commented Feb 6, 2020

The semantics of Conn.Wait and Conn.Close are unclear as of the docs currently.

https://pkg.go.dev/golang.org/x/crypto/ssh?tab=doc

	// Close closes the underlying network connection
	Close() error

	// Wait blocks until the connection has shut down, and returns the
	// error causing the shutdown.
	Wait() error

Is it necessary to call both, and in which order, or is just Close enough?

@cagedmantis
Copy link
Contributor

@cagedmantis cagedmantis commented Feb 6, 2020

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.