Skip to content

Handle and detect aborted connection #1603

Answered by mus65
Mrproex asked this question in Q&A
Discussion options

You must be logged in to vote

You can't completely rely on IsConnected because the client may not notice the connection is gone unless it actually tries to send data. You could minimize the problem by setting a KeepAliveInterval to keep the connection alive. There were some bugs in SSH.NET regarding this, but these should be fixed in the latest release, see #843 .

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Mrproex
Comment options

@mus65
Comment options

Answer selected by Mrproex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants