What EXACTLY causes the Error "The connection was closed by Server"

0
Hi all For a project, I have bought the sFTP component and developed a sFTP client, that connects to a SFTP server (hosted by IBM). The sFTP client establish a connection by start and then does data exchange (copy .xml files) in both directions and also moves files from one to another directory on the sFTP server. This interface should work 24/7/24 (excluding a maintenance window every Saturday, were the connection is closed automatically and re established at Sunday morning, so that the sFTP server can be shut down at Saturday, if needed). The sFTP client works fine principally. But, I have crashes from time to time. Sometimes, it works for weeks 24/7, then I have multiple crashes at the same day. The sFTp-Client crashes with the error Message: **"The connection was closed by Server"** I don't have implement try-catch, once the connection is established (as the files have to checked in this case before restart the client). Question: **What *exactly* can cause / means this error message? ("The connection was closed by Server")** - Only a real shutdown of the sFTP server? - Also short breaks in the network connection? - If yes: - how long have the break to be, that a "The connection was closed by the server" is triggered? - are there some timeout settings that can be set? Thanks for a fast feedback Regards from Switzerland Fredy
 
asked 1/16/2018 9:39:30 PM
add a comment

3 Answers

0
Hi again Thanks for the link. So... it seems, as the log has to be implemented in code. Unfortunately the description is not really detailed. Questions: - What is the influence to the performance (is it notable, if the log is on)? - Has the log file to be maintained (as it becomes bigger and bigger in a short time)? Can you give me a link with an example log-file or send me an example via email please (so that I can see if it really would help me)? Thanks for a further feedback.
edited 2/2/2018 5:18:36 PM
answered 2/2/2018 5:13:37 PM
add a comment
0
Hi Log file sounds interesting... Unfortunately, I cant' find any log file... **Where (in the files system) should the log file be generated (or do I have to set an option for)?** Thanks for a further fast answer
 
answered 1/18/2018 3:55:11 AM
  Please have a look at this topic: [https://www.componentpro.com/blog/details/adding-log-capabilities-net-application](https://www.componentpro.com/blog/details/adding-log-capabilities-net-application) sysadmin 1/18/2018 11:12:23 AM
add a comment
0
Hello, that seems to be a problem with the server. For investigation, please send us the log file generated by our component.
 
answered 1/17/2018 8:54:29 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged sftp or ask your own question.