Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: RemoveForwardedPort(ForwardedPort) [1163]

$
0
0
Set up a forwarded port using:AddForwardedPort("127.0.0.1", 8080, "example.org", 80); Then browse to http://127.0.0.1:8080 Then:RemoveForwardedPort(ForwardedPort) "RemoveForwardedPort" will stop listening to port 8080 on ip 127.0.0.1 BUT it does not kill current connections.
Comments: ** Comment from web user: coewar **

Hi.. I just came across this. But I didn't realize this should be a bug! Think about this, and perhaps you want to change your mind or make a separate method:

If you have a service listening on some port, and you want to stop it, you will want to stop it in one of two ways:
- Stop listening AND kill current connections (which can be bad)
- or Stop listening BUT let all current connections continue until they gracefully stop.

In Linux, for example, even if you change the SSH service port and restart it, your current session still continues to work! And obviously for good reason.. if you screw up (while testing on a new connection) you still have the existing connection working to fix it.


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>