[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnutls] thread safety of gnutls
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: [Help-gnutls] thread safety of gnutls |
Date: |
Sat, 4 Mar 2006 09:07:49 +0100 |
User-agent: |
KMail/1.9.1 |
On Fri 03 Mar 2006 09:14, Ang Way Chuang wrote:
> Hi all,
> I am very sorry for asking too many questions. I ran a
> multithread test on gnutls_record_{recv,send}. When there are
> multiple threads using one of these functions simultaneously, the
> application will segfault. However, if i protect these functions with
> mutex, it won't segfault. But i thought gnutls is thread safe by
> design.
Yes gnutls is thread safe by design. As far as I can understand from the
code below you are accessing a single session from several threads. This
is not supported. If you want to do that you have to use locks.
regards,
Nikos Mavrogiannopoulos