This project is read-only.

Stop PortForwarding is toooooooo slow !

Jan 30, 2015 at 10:19 PM
When i try to stop a started forwared port to stop it takes more than 20 secs to stop !
Is it possible to make that run faster ?
       If CurrentEShopSSH.ForwardedPorts(0).IsStarted Then
       End If

Or maybe send this job to the background and go down the code to the next statement ?
Jan 31, 2015 at 8:17 PM
From my tests the codes waits toooooooo long for the ssh to stop the forwarded port ! If i use plink then the stop proccess is much more faster...
I think it's a bug ....

In order to overcome the issue i am using a background worker in order to do that job ! I have counted 30 secs until the job is done !

it needs 30 secs for a port to stop !
Feb 1, 2015 at 9:32 PM
Maybe you can track down the issue and provide a patch for it?

I made some fixes a while ago to speed up stop of forwarded ports:

Basically I close client sockets before stopping the Listener. But I'm nor sure wether it's correct or not. Worked for me ;)
No idea if it is the same problem.
Feb 1, 2015 at 9:38 PM
Please provide me a test version of the component and tell you after my tests ! I only a day to do it !
Feb 1, 2015 at 9:38 PM
It is not a problem for me to do it ! It is easy to import it to my app !
Feb 2, 2015 at 6:17 AM
Nope, not gonna releasing testable binaries. This is drieseng territory :)
But you are free to download the sources, apply the patch from my experimental tree and compile it.
Should be an easy task.

If it also works for you, we can ask drieseng to integrate the patch.
Feb 2, 2015 at 8:36 AM
ahaha !

Never new that this job was some else job !

ok then i will take the experimental tree... not a problem actually ...try it today or tomorrow and come back for news !