EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Abnormal disconnection

Posted: 12/15/2006 06:12:43
by Alexander Pustotin (Basic support level)
Joined: 05/19/2006
Posts: 3


I use TElIdSFTPClient to get access my SFTP server.

Problem description:
1. I open connection and can get/put files from/to a server.
2. If connection is abnormally closed (problem of network, hardware ...) my TElIdSFTPClient still "think" that it is active.
3. When I try to use TElIdSFTPClient in this state I get socket error.

How can I get that connection is lost? Maybe some ping to server, or ...?

Thank you in advance
Posted: 12/15/2006 10:32:34
by Eugene Mayevski (Team)

What you describe is correct behaviour of the server. On each socket call it's possible that you get an error. And your application must be ready to handle this error. I.e. you need to wrap the calls with try/except or try/finally and act accordingly.

If some operation fails, you must call Close method (where available) to close the logical connection and reset the component state.

Sincerely yours
Eugene Mayevski



Topic viewed 4652 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!