EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Unable to re-establish connection

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#3456
Posted: 07/27/2007 07:06:40
by Gary Loftus (Basic support level)
Joined: 12/19/2006
Posts: 19

Hi,

I have a windows service running which connects to an sFTP server every 5 minutes to transfer files. Everything works fine until the server drops the connection. When this happens my service is unable to re-connect even when the server is available again unless i stop and re-start the service.

I am using TElSimpleSFTPClient .NET and i am using similar code to the SimpleSFTPClient demo sample.

I am assuming the TElSimpleSFTPClient object is in some state that prevents it from re-establishing the connection but I cannot see what it is. I perform the .Close method whether the connection is successful or not.
I have been able to replicate the problem by setting up my own sftp server so I know it is not something particular at the server end.

Can anyone point me in the direction as to the potential cause?

thanks in advance

Gary
#3459
Posted: 07/27/2007 13:56:19
by Eugene Mayevski (EldoS Corp.)

Calling Close() should be enough. Can you please tell me what exactly happens when the client attempts to reconnect? What error do you get (if any) or the component jut hangs?


Sincerely yours
Eugene Mayevski
#3461
Posted: 07/29/2007 02:47:15
by Eugene Mayevski (EldoS Corp.)

FYI: I've tested the described scenario and it exposed no problems. Please try SimpleSftpDemo itself.


Sincerely yours
Eugene Mayevski
#3462
Posted: 07/29/2007 02:57:04
by Eugene Mayevski (EldoS Corp.)

Also please specify what version of SecureBlackbox you are using. The problem existed in some old versions of SecureBlackbox 4, but was solved long time ago.


Sincerely yours
Eugene Mayevski
#3464
Posted: 07/30/2007 04:43:50
by Gary Loftus (Basic support level)
Joined: 12/19/2006
Posts: 19

Thanks for the reply.

I am performing the close(true) method on each disconnect.

The version I have is 5.0.0.104.

The error I recieve is a simple 'connection failed' error number 5.
#3468
Posted: 07/30/2007 05:15:38
by Gary Loftus (Basic support level)
Joined: 12/19/2006
Posts: 19

Do you wish me to send you a simplified version of the code with just the initialisation, connect and disconnect functions?
#3470
Posted: 07/30/2007 06:12:57
by Eugene Mayevski (EldoS Corp.)

Yes, probably a test case would be useful.


Sincerely yours
Eugene Mayevski
#3471
Posted: 07/30/2007 06:13:57
by Eugene Mayevski (EldoS Corp.)

Also, it's a good idea to use the latest build, such as 5.1.112. There were some problems in build 104 which have been fixed with build 105. So staying with build 104 doesn't make much sense.


Sincerely yours
Eugene Mayevski
#3473
Posted: 07/30/2007 06:40:04
by Gary Loftus (Basic support level)
Joined: 12/19/2006
Posts: 19

Thanks. I will download the latest version and see if that corrects the problem. If not, I will send you a version of my code.
#3474
Posted: 07/30/2007 07:16:33
by Gary Loftus (Basic support level)
Joined: 12/19/2006
Posts: 19

I have installed the latest version of the code and this seems to have rectified the problem.

Thanks for your assistance.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 3518 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!