Closed djfritz closed 4 years ago
@mkunz7 @aherna
@djfritz We now get the below error when creating the rtunnel.
ie cc rtunnel
2019/11/21 23:49:13 ERROR mux.go:122: dial tcp 127.0.0.1:
@djfritz We now get the below error when creating the rtunnel. ie cc rtunnel 127.0.0.1
2019/11/21 23:49:13 ERROR mux.go:122: dial tcp 127.0.0.1:: getsockopt: connection refused
looks like its working. looks like if the os is not listening on the specified port it will fail with that error
rtunnel
shouldn't open any sockets initially on the host - it forwards any connections from guests to some destination - so that error should only occur when whatever is trying to connect inside the guest attempts a connection and then, as you say, the service isn't listening, etc.
So in a sense, that's not an error - it's perfectly acceptable to have a tunnel without something listening on the destination. The connection refused error should also be correctly propagated to the guest application as well.
@jcrussell @csymonds @jasoncontrib - can we get a review?
fixes #1384