EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP in multiple threads

Posted: 10/03/2008 05:21:42
by Slawomir Grzeskowiak (Standard support level)
Joined: 04/23/2008
Posts: 1


I have a problem with running muliple instances of TElSimpleSFTPClient in separated threads in one process. Only first of the instances works correctly, others report following error (during Connect):
Wrong socket state 1 in Init (error code is 96258)

Is there solution for this problem?
Posted: 10/03/2008 05:56:40
by Eugene Mayevski (Team)

It looks like all threads are accessing the same instance of TElSimpleSFTPClient somehow. Init() method of the socket is called only once in ElSimpleSFTPClient.Open(), and the socket being initialized is a private field of the object. So there's no chance that other object's Init method is called.

Sincerely yours
Eugene Mayevski



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