EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP in multiple threads

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#7795
Posted: 10/03/2008 05:21:42
by Slawomir Grzeskowiak (Standard support level)
Joined: 04/23/2008
Posts: 1

Hello,

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?
#7797
Posted: 10/03/2008 05:56:40
by Eugene Mayevski (EldoS Corp.)

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

Reply

Statistics

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