Skip to content

Commit

Permalink
ssh: CL feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Jun 21, 2023
1 parent 83552c4 commit 584f08b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ssh/tcpip.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,12 @@ func (l *tcpListener) Addr() net.Addr {
}

// DialContext initiates a connection to the addr from the remote host.
// If the supplied context is cancelled before the connection can be opened,
// ctx.Err() will be returned.
// The resulting connection has a zero LocalAddr() and RemoteAddr().
//
// The provided Context must be non-nil. If the context expires before the
// connection is complete, an error is returned. Once successfully connected,
// any expiration of the context will not affect the connection.
//
// See func Dial for additional information.
func (c *Client) DialContext(ctx context.Context, n, addr string) (net.Conn, error) {
if err := ctx.Err(); err != nil {
return nil, err
Expand Down

0 comments on commit 584f08b

Please sign in to comment.