Maintained by: NLnet Labs

[Unbound-users] Now libev will be default event handler instead of libevent?

W.C.A. Wijngaards
Tue Jan 6 14:07:46 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Beastie,

While working on libev support I found the problem we were seeing with
libevent. It is fixed in current svn trunk, which should make unbound
work fine with many libevent versions.

The problem caused threaded race condition problems. Most of the time
this race condition did not cause a problem. It only happened with
libevent (and also libev, which is specifically supports the nonfeature
involved, and crashed for me so I could debug it).

Haw Loeung graciously tested the fix for me, and reports that his
libevent problems seem to be over.

The fix is scheduled for the upcoming 1.1.2 release.

And yes the idea was to support libev to help debug problems with
libevent.  I would like to support libev and libevent both as options,
so that people can choose the faster, or less buggy library if needed.

An easy way to use libev, without installing it, is to build libev and
give --with-libevent=/home/user/libev-3.51 to configure for unbound.

Best regards,
   Wouter

Beastie wrote:
>> 5 January 2009: Wouter
>> 	- fixup getaddrinfo failure handling for remote control port.
>> 	- added L.ROOT-SERVERS.NET. AAAA 2001:500:3::42 to builtin root hints.
>> 	- fixup so it works with libev-3.51 from http://dist.schmorp.de/libev/
>> 	- comm_timer_set performs base_set operation after event_add.
> 
> 
> Hi Wouter.
> 
> I can see from the change log that now Unbound officialy supports also
> libev? Do you plan to entirely replace libevent with libev, or libev
> will be as an alternative recommended variant for people who got
> troubles with libevent?
> _______________________________________________
> Unbound-users mailing list
> Unbound-users at unbound.net
> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkljV6IACgkQkDLqNwOhpPjJmgCeM95ICh/dpxHAK1rCo3KVxLXr
cncAmwdVl91Tw+zSHGoQZD3VWODVrsSn
=BYkl
-----END PGP SIGNATURE-----