[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] multithreading problem



On Tue, Dec 18, 2012 at 12:53:11AM +0100, Bj?rn K. wrote:
> I tried to simplify my code as much as possible. You can see the
> simplified code and the error message from gdb below.
> Every thread has its own event_base. The only access to the
> event_bases of the threads is from the event_base_loop of the
> corresponding thread and the bufferevent functions in acceptcb().
> The basic idea was that acceptcb() assigns every new connection to one
> of the threads.


OpenSSL is not thread-safe. You need to setup your ssl locking
callbacks.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.