Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Port Forwarding is been stopping to slow !

$
0
0
Hello there,
I have am testing the latest beta for resolving all the hugs i have on a tunnel.
When I enable port forwarding on a port on the exit of the application i am stopping all ports and disconnects from the server ! The code below shows what i am talking about:
   For I As Integer = 0 To mvarSSH.ForwardedPorts.Count - 1
        If mvarSSH.ForwardedPorts(I).IsStarted Then
          mvarSSH.ForwardedPorts(I).Stop()
        End If

        mvarSSH.RemoveForwardedPort(mvarSSH.ForwardedPorts(I))
   Next

  If Not mvarSSH Is Nothing Then
        If mvarSSH.IsConnected Then
          mvarSSH.Disconnect()
        End If
      End If

      mvarSSH = Nothing

It stucks on the mvarSSH.ForwardedPorts(I).Stop() for over 1 minute and proceeds.. Why takes 1 minute to stop a port ?

In previous version of the SSH.NET the same command needed 2 secs to stop !

Am i doing something wrong ?

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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