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

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



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.


Best regards,

Zhuang Yuyao

Attachment: 110-evdns-thread-lock.patch
Description: Binary data