Skip to content

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

Open
@darkfeline

Description

@darkfeline

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions