[Libevent-users] Setting timeout to NULL on bufferevents doesn't work as expected

2012-08-06 Thread Diwaker Gupta
I've filed a bug with all details and sample code that demonstrates the problem on Github: https://github.com/libevent/libevent/issues/16 Nick: can you verify if my understand of the expected behavior is correct. That is, if I set timeout to NULL, any existing timers should get cancelled and no fu

Re: [Libevent-users] Deadlock when calling bufferevent_free from an other thread

2012-08-06 Thread Nir Soffer
On Mon, Aug 6, 2012 at 9:42 PM, Matthieu Nottale < mnott...@aldebaran-robotics.com> wrote: > Hi. > > I'm experiencing a deadlock on 2.0.19 while calling bufferevent_free frome > thread A, while thread B is in event_base_dispatch. > > Here are the two relevant backtraces: > > (gdb) bt > #0 0xb7fe1

[Libevent-users] Deadlock when calling bufferevent_free from an other thread

2012-08-06 Thread Matthieu Nottale
Hi. I'm experiencing a deadlock on 2.0.19 while calling bufferevent_free frome thread A, while thread B is in event_base_dispatch. Here are the two relevant backtraces: (gdb) bt #0 0xb7fe1424 in __kernel_vsyscall () #1 0xb7d1c48c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/