gnutls_handshake() thread problem
nmav at gnutls.org
Fri Nov 19 16:07:15 CET 2010
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
More information about the Gnutls-help