On Tue, 2010-08-31 at 09:53 +0200, Simon Josefsson wrote:
> You shouldn't need any mutexes except the ones needed for the crypto
> library. Maybe you could remove your own mutex and see if things
> continue to work?
It's certainly possible I've messed stuff up, but without the mutex for
libssh2_session_init_ex(), things still occasionally blow up. With a
mutex for that one call and the crypto callback functions, things *seem*
completely stable.
> Of course, you still need to make sure you don't access one session from
> more than one thread, but normally this is handled by having one thread
> per session.
Yup, one session per thread.
Joe
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-08-31