Tunnel Error - Disconnect first. - WeOnlyDo Discussion board

Tunnel Error - Disconnect first. (wodSSHTunnel)

by Mike, Monday, October 20, 2014, 17:40 (3475 days ago)

I am using the wodSSHTunnel using a Proxy server, but sometimes get the below disconnect error.

Cannot connect at this time. Use Disconnect first.
ErrorCode = -2146798287

I can only get around this, if i run the application and Disconnect the tunnel, then connection works correctly.

Is there a way to check if there is an existing connection on a specific ProxyPort first before connecting?

Tunnel Error - Disconnect first.

by Jasmine, Monday, October 20, 2014, 17:53 (3475 days ago) @ Mike

Hi Mike.

This happens only on 2nd, 3rd (and so on) attempt to connect, right? As the error says, you need to Disconnect before you can call Connect again.

You can check current State to know if wodSSHTunnel is busy

http://www.weonlydo.com/SSHTunnel/Help/wodTunnel-State.html

but it's always safe enough just to call Disconnect regardless if it's connected or not.

Jasmine.