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

Re: session establishment struck


Aris,

Thank you for your reply. But in the current case, session has not been
established as it is struck at user authentication, so problem might not be
multithreaded corruption of the data structures. Read and write threads are
created after establishing the session.

But you raise a very important issue. In our case, we have a third party
library that parses the reads from the network and also writes data to the
network. Library expects read and write function handler to be registered,
with the expectation that user implemented read blocks till the data is
available from the network to parse the data. Write method is called by the
library once a data is formatted to write to the network. Third party
library is the one that creates separate threads for reading and writing
once we create a network connection.
In such a case, can you please let me know how I can use libssh?

Regards,
Vasuki

On Sun, Aug 26, 2012 at 2:08 PM, Andreas Schneider <asn@xxxxxxxxxxxxxx>wrote:

> On Saturday 25 August 2012 11:15:15 you wrote:
> > Aris,
> >
> > Thank you for your response.
> >
> > We create multiple ssh sessions simultaneously to multiple hosts. For
> each
> > host we connect, I have a read thread to read from ssh session and write
> > thread that writes to session.
>
> That's the problem. You can only work on one session in one thread or the
> internal states will be wrong and strange things can happen.
>
>
>         -- andreas
>
> --
> Andreas Schneider                   GPG-ID: F33E3FC6
> www.cryptomilk.org                asn@xxxxxxxxxxxxxx
>
>
>

Follow-Ups:
Re: session establishment struckVasuki Gubbi <gkvasuki@xxxxxxxxx>
References:
session establishment struckVasuki Gubbi <gkvasuki@xxxxxxxxx>
Re: session establishment struckAris Adamantiadis <aris@xxxxxxxxxxxx>
Re: session establishment struckVasuki Gubbi <gkvasuki@xxxxxxxxx>
Re: session establishment struckAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org