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

Re: [Libevent-users] [PATCH] evdns lock violation while thread is used



On Wed, Nov 25, 2009 at 03:30:08PM +0800, Zhuang Yuyao wrote:
> evdns contains a bug related to thread lock.
> 
> enable thread lock by evthread_use_pthreads() will cause successive
> evdns_base_resolve_ipv4() (and other resolve functions i think) to
> hang on EVDNS_LOCK(base) after one or several successful call to
> evdns_base_resolve_ipv4().
> 
> 
> the patch attached with this mail solved this problem on my machine.

I've merged this to the master branch; thanks!

I've also applied code for a 'lock debugging mode' so we can try to
catch problems like this more reliably in the future.

yrs,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.