gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnutls_handshake crash on multithreading


From: Nikos Mavrogiannopoulos
Subject: Re: gnutls_handshake crash on multithreading
Date: Mon, 15 Feb 2010 22:27:13 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Vasiliy Ivanov wrote:
> Yes. It methods calls at program starts, but not when program calls
> gnutls_handshake!
> I think, gnutls_handshake does not use mutex inside((

gnutls is thread safe, does not need mutexes. The mutexes you set for
the libgcrypt functions that are not thread safe. gnutls is quite tested
with threads, thus I'd bet the problem is in your code (and your mutex
handlers you give to libgcrypt).

> -----Original Message-----
> From: Nikos Mavrogiannopoulos [mailto:address@hidden On
> Behalf Of Nikos Mavrogiannopoulos
> Sent: Monday, February 15, 2010 10:38 PM
> To: Vasiliy Ivanov
> Cc: 'Simon Josefsson'; address@hidden
> Subject: Re: gnutls_handshake crash on multithreading
> 
> Vasiliy Ivanov wrote:
>> Yes, my code from this documentation
>> ...
>> gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost ); ...
>> gnutls_global_init();
> 
> And are you sure your gcry_threads_boost is acting correctly?
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]