[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is libssh thread safe


Hi Zhang,

Libssh is threadsafe but not in this use case. Channels and sessions
have to be different, or you have to implement locking to avoid
situations where two threads access the same channel.
We are looking for solutions, but there's nothing in short-term to come up.

Regards,

Aris

Le 20/05/11 16:56, Zhang Qian a écrit :
> Hi,
> 
> I am trying to use libssh in a mutli-thread program, so I'd like to know
> if libssh is thread safe. E.g., is it OK that two threads use the same
> channel of the same session to execute a command remotely and get the
> result back respectively?
> 
> 
> Thanks,
> Qian

Follow-Ups:
Re: Is libssh thread safeZhang Qian <zhq527725@xxxxxxxxx>
References:
Is libssh thread safeZhang Qian <zhq527725@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org