<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> </p>
<p>Do you think it'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 **
<p> </p>
<p>Do you think it'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