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

Commented Unassigned: SftpClient is throwing undocumented exceptions [2148]

$
0
0
The documentation says that Connect can throw InvalidOperationException and ObjectDisposedException, but when you can't connect (remote server stopped, network problem, ...) a SocketException is thrown after a long timeout (about 10 seconds).

Worst, if you catch the exception and log the error another SocketException is thrown when you call Dispose. Documentation doesn't list any exceptions for Dispose.
Comments: ** Comment from web user: wwcamtig **

This is not the only case. Another example is SftpClient.Get(). It will throw SftpPathNotFoundException if the remote file doesn't exist.


Viewing all articles
Browse latest Browse all 1026

Trending Articles