[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] [PATCH] evdns lock violation while thread is used
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] [PATCH] evdns lock violation while thread is used
- From: Zhuang Yuyao <mlistz@xxxxxxxxx>
- Date: Wed, 25 Nov 2009 15:30:08 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 25 Nov 2009 03:02:23 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=+nloZqGnPoMcEbBtQFY5hk1/FYK80B+tXkiPi4hJKvg=; b=kgIt+N6MEKgOsX6p6k+DzhVGYqr+85wZM5hgiygNlmoe2acoEcipeDhaaICqa0u7CY fXUzYREZQ95pRMqdNIctCJLIEiGLGt/1z/IJVhOp0dNv3oKDcdFou1WBWokXCOi69Okm U0Tp6/O856w38B7mAFexp00SD6RZ/zekkmgMQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JPxz1BBENUew/0/8uaR8vrgcbC1ARjJGpfUYbiq4s2gPNksr6B0T40jd9XCueVB7Np zjabCem6atJI4BF6aLCIl4oSdedhc9lMjYgn49RU9rukuQxg+hatZ9xAZyVyBwtDj+H1 3JurKxb06LUYjd4347gUVhi33Ixuvt+1F2Riw=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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