Re: exceptions
Bernardo F Costa <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
But you could use different sessions and clients in the same thread or perhaps different sessions and clients through different threads ? Was there any need to isolate some functions like remote reading, opening connections or sessions or any other ? No critial regions for your code or need to use mutexes for some operations ? --- Tilman Sporkert <[email protected]> escreveu: > It has been a while since I actively used sshtools. > I mainly used it for > port forwarding. We had lots of problems with > sshtools in a > multi-threaded environment. I ended up strictly not > using clients or > sessions across threads - each thread had its own > client, even when > connecting to the same SSH server. For better > performance, I kept a pool > of clients alive in a pool, and assigned them to > threads as needed. > > Tilman > > Bernardo F Costa wrote: > > All right, it's my turn to question now !! > > > > Have you, or anyone else you know, worked with > > sshtools and threads ? Is is thread safe ? If not, > > what problems can occur with threads ? I don't > know > > whether this is a thread problem but I have seen > quite > > usually some kinds of exceptions. They are > frequently > > raised and I don't know the meaning of it. Bad > link > > connections problems ? Too much waiting or > blocking > > operations ? If somebody have seen frequently > these > > messages, please post so we can change some ideas. > > > > __________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV