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: Tue, 16 Feb 2010 13:52:38 +0100

Check the examples available from libgcrypt for posix threads.

On Mon, Feb 15, 2010 at 10:29 PM, Vasiliy Ivanov <address@hidden> wrote:
> 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]