openconfig / grpctunnel

A TCP-over-gRPC Tunnel
Apache License 2.0
81 stars 24 forks source link

Check canceled context so Listen can return #34

Closed sengleung closed 3 years ago

sengleung commented 3 years ago

A call to Listen does not return unless a connection with a grpctunnel server is established. As a result, it is not possible to stop the client from dialing out. It would be ideal to be able to return from Listen with context.CancelFunc.