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

New Post: Detecting disconnection and reconnecting

$
0
0
Is there a way of detecting being disconnected and possibly reconnecting.

The only way I seem to get this to work is by attaching to the exception event and reconnecting open exception. this is a bit dirty for 2 reasons.
  1. mutiple exceptions can be thrown so I have to manage this (other wise it reconnect mutiple times.
  2. After the first SshConnectionException is thrown and ive reconnected. the exception doesnt seem to through again if I'm disconnected.
Amy ideas.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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