This PR simply implements a function DialContext so that a context can be used to terminate the dialing. VSOCK has lower chances to delay obtaining a response while dialing, but it can still occur.
Moreover, it is important to be supported while integrating with go-libp2p. Check github.com/balena/go-libp2p-vsock. It allows enclaves to dial remote libp2p nodes by means of relays.
This PR simply implements a function
DialContext
so that a context can be used to terminate the dialing. VSOCK has lower chances to delay obtaining a response while dialing, but it can still occur.Moreover, it is important to be supported while integrating with
go-libp2p
. Check github.com/balena/go-libp2p-vsock. It allows enclaves to dial remotelibp2p
nodes by means of relays.