Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: Exception raised when disconnection is performed intentionally from the user [1243]

$
0
0
<p>I noticed that whenever we call the Disconnect method, a new SshConnectionException is raised with ConnectionLost as Disconnect Reason (is not more appropriate ByApplication?).</p>
<p>&nbsp;</p>
<p>Do you think it&#39;s possible to revise the code in order to close the connection normally, gracefully and without resorting to exceptions which confuse my application internal log because thinks they are real errors ?</p>

Comments: ** Comment from web user: olegkap **

Sorry getting to this just now,
What you propose might cause other problem.
So for example, according to this code first I will disconnect socket then will try to send Disconnect mesage over the same socket that I close which definitely will cause some kind of exception


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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