EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP Connection Lost Exception

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 12/03/2010 10:42:12
by Richard Egginton (Basic support level)
Joined: 12/03/2010
Posts: 1


we purchased a SFTPBlackbox client-only, single-developer license from you in 2009 (build No, which we are using in a couple of Windows Services we have developed for exchanging files with one of our clients.

Up until recently, everything has been fine, however our client has changed their distribution model and instead of getting a small number of larger files, we are now getting a huge number of small files to download, and we are running into a timeout problem.

The actual error is:

ERROR2010-12-03 13:47:08 - Connection lost (error code is 0)
SBSimpleSftp.EElSimpleSFTPClientError: Connection lost (error code is 0)

Which relates to code which is as follows:

SBSimpleSftp.TElSimpleSFTPClient SftpClient = new TElSimpleSFTPClient();

TElSSHMemoryKeyStorage KeyStorage;

SftpClient.OnKeyValidate += new SBSSHCommon.TSSHKeyValidateEvent(this.SftpClient_OnKeyValidate);

SBUtils.Unit.SetLicenseKey(SBUtils.Unit.BytesOfString("#### etc"));
KeyStorage = new TElSSHMemoryKeyStorage();
sftpClient.KeyStorage = KeyStorage;

SftpClient.Username = _ClientGroup.RemoteServerUsername;
SftpClient.Password = _ClientGroup.RemoteServerPassword;
SftpClient.Address = _ClientGroup.RemoteServerAddress;
SftpClient.Port = _ClientGroup.RemoteServerPort;


SftpClient.ListDirectory(_ClientGroup.InboundRemoteFileLocation, dirList, "*.*", false, true, false);

// here we capture the files, download them, etc....


The exception seems to occur when doing a ListDirectory. We can connect to the server fine.

We're a little lost as to what the problem might be and are hoping for some advice as to how to get around it.

Thanks in advance.

Posted: 12/03/2010 11:30:49
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Could you please answer the following questions to give us better understanding of the issue:
1) Does the problem always occur on the same stage of the connection or it is intermittent?
2) Do you assign some value to the SocketTimeout property?
3) Is OnError event fired?
4) Can you please check whether SimpleSFTPDemo sample (included to the distribution) exposes the same issue?
Posted: 12/03/2010 11:33:07
by Ken Ivanov (EldoS Corp.)

In the mean time, could you please assign the license ticket you have received in the registration letter to your site account to get Standard support level (so that we had the ability to answer you faster).



Topic viewed 1951 times

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


Back to top

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

Got it!