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: Vasiliy Ivanov
Subject: RE: gnutls_handshake crash on multithreading
Date: Mon, 15 Feb 2010 23:29:03 +0200

Can you write me a good example of mutex, that I need to pass in
gcrypt_control ?
Thanks!

-----Original Message-----
From: Nikos Mavrogiannopoulos [mailto:address@hidden On
Behalf Of Nikos Mavrogiannopoulos
Sent: Monday, February 15, 2010 11:27 PM
To: Vasiliy Ivanov
Cc: 'Simon Josefsson'; address@hidden
Subject: Re: gnutls_handshake crash on multithreading

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]