[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: session establishment struck
[Thread Prev] | [Thread Next]
- Subject: Re: session establishment struck
- From: Vasuki Gubbi <gkvasuki@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 26 Aug 2012 19:17:14 -0700
- To: libssh@xxxxxxxxxx
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 > > >
Re: session establishment struck | Vasuki Gubbi <gkvasuki@xxxxxxxxx> |
session establishment struck | Vasuki Gubbi <gkvasuki@xxxxxxxxx> |
Re: session establishment struck | Aris Adamantiadis <aris@xxxxxxxxxxxx> |
Re: session establishment struck | Vasuki Gubbi <gkvasuki@xxxxxxxxx> |
Re: session establishment struck | Andreas Schneider <asn@xxxxxxxxxxxxxx> |