help-gnutls
[Top][All Lists]
Advanced

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

Re: gnutls_handshake() thread problem


From: Nikos Mavrogiannopoulos
Subject: Re: gnutls_handshake() thread problem
Date: Fri, 19 Nov 2010 16:07:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10

On 11/19/2010 03:46 PM, Jay Anra wrote:
> answering your question: 'Do you call  gnutls_handshake in parallel from
> different threads?'
> 
> Sort of, although not explicitly. It's a consequence of using asynchronous
> sockets. The concurrency comes
> from the interrupt generated by the SIGIO signal, which gets sent to my
> process when data arrives on the socket.
> Obviously I have no control over the timing of this signal, so it may cause
> concurrent calls to gnutls_handshake()
> or it may not.

I still cannot understand why you need to call gnutls_handshake() in a
concurrent way. Could you explain your scenario? In any case all gnutls
functions are reentrant as long as each session is handled in a single
thread.

regards,
Nikos



reply via email to

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