You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #20288 which added a DialContext method to ssh.Client, we propose to add a top-level convenience function DialContext to the crypto/ssh package which mirrors the existing Dial func:
The DialContext func would accept a context.Context as its first argument, which would control the dial and handshake phases of the connection. Closing the Context after the connection is established would have no effect on the resulting Client. This is consistent with other DialContext uses in the Go standard library and this package.
We have a change ready to go (~33 SLOC), so happy to submit a CL when/if this is approved.
The text was updated successfully, but these errors were encountered:
Similar to #20288 which added a DialContext method to ssh.Client, we propose to add a top-level convenience function DialContext to the crypto/ssh package which mirrors the existing Dial func:
The DialContext func would accept a context.Context as its first argument, which would control the dial and handshake phases of the connection. Closing the Context after the connection is established would have no effect on the resulting Client. This is consistent with other DialContext uses in the Go standard library and this package.
We have a change ready to go (~33 SLOC), so happy to submit a CL when/if this is approved.
Proposal Details
Similar to #20288 which added a
DialContext
method tossh.Client
, we propose to add a top-level convenience functionDialContext
to thecrypto/ssh
package which mirrors the existingDial
func:The
DialContext
func would accept acontext.Context
as its first argument, which would control the dial and handshake phases of the connection. Closing the Context after the connection is established would have no effect on the resultingClient
. This is consistent with otherDialContext
uses in the Go standard library and this package.We have a change ready to go (~33 SLOC), so happy to submit a CL when/if this is approved.
The text was updated successfully, but these errors were encountered: