Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Not getting SocketException or SshException even if the logs on rebex tiny sftp server shows this in error logs

$
0
0

I am writing a client to upload data to sftp server. For that I am using Rebex file transfer pack (4.0.6930). I am using rebex tiny sftp server for development purpose.

I get error logs on sftp server about socket exceptions but I don't get any exception on client side and file also uploads.

Below are the logs that are written on rebex tiny sftp server:
17:17:28.942 Error Server: Session 1697: Error: : Error while processing packet SSH_MSG_CHANNEL_DATA. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at .( ) at .( ) at .() at .(SshPacketType ,  ) at .(SshPacketType ,  ) at .(Int32 , Int32 ) --- End of inner exception stack trace --- at .(Int32 , Int32 ) at .() at .(Int32 , Int32 , Int32 , Int32 , SocketException )

I am just wondering what exception will be thrown on file transfer client in case of socket exception (System.Net.SocketException or Rebex.Net.SshException)?

So that I can handle this exception accordingly.

Also I checked that StatusCode enum values of Rebex.Net.SshException are different than System.Net.Sockets.SocketError enum values.
Is there a way to map between these two?


Viewing all articles
Browse latest Browse all 3862

Trending Articles