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

New Post: Hang connecting to MYSQL

$
0
0

Hi,

 

Can you try to add this:

                port.Exception += delegate(object sender, ExceptionEventArgs e)
                {
                    Console.WriteLine(e.Exception.ToString());
                };
                port.RequestReceived += delegate(object sender, PortForwardEventArgs e)
                {
                    Console.WriteLine(e.OriginatorHost + ":" + e.OriginatorPort);
                };

First handle will tell you if there any exception occurred during port forwarding that you might not see.

The second one will notify you as soon as request received.

Just see if you have any delay after you call Open and receiving request as well see if you getting any exception.

 

Thanks,

Oleg


Viewing all articles
Browse latest Browse all 1729

Trending Articles



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