RE: [Libevent-users] Chicken and Egg when disconnecting users from a threaded base

2011-03-08 Thread Kelly Brock
Hi Kevin, Wish I could give you an answer but this looks very similar to the shutdown issue I had before work pulled me away to other things for the last couple months. With 1000 sockets and 10% at anytime connecting or disconnecting I loose about 1% of the disconnections to this issue, s

[Libevent-users] Chicken and Egg when disconnecting users from a threaded base

2011-03-06 Thread Kevin Bowling
Having a bit of trouble handling disconnects with libevent Right now, we disable the event from a worker and call bufferevent_free from there. However, as seen in the included back trace, there is a race between the event base trying to acquire another reference. In general, how should this prob