Subject: Re: Thread safety issues

Re: Thread safety issues

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 28 Aug 2010 20:00:00 +0200 (CEST)

On Fri, 27 Aug 2010, jmk wrote:

>> Both libgcrypt and OpenSSL have mutex functions that are supposed to be
>> used when handled multi-threaded. Do you use them?
>
> I'm not directly calling any libgcrypt/openssl functions within this code.
> I'm simply calling libssh2_session_init/libssh2_session_startup. I'm
> assuming the openssl mutex use would need to take place within libssh2, no?

No, libssh2 doesn't do that. It's a subject worth considering for the future.

I would suggest that you first try using those and see if they make the
problems go away or if they remain.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-08-28