At Mon, 16 Oct 2006 22:18:28 -0700, Niels Provos wrote: > > Hi everyone, > > libevent 1.2 was released yesterday. There are some major feature > improvements: > > - Support for non-blocking DNS resolution > - Support for lightweight HTTP clients and servers Support for > - Sun's Event Ports > > There have also been several bugfixes. I hope this works on your > system. If not, please send me patches to fix. More information > including credits at: > Thanks for this! The dns and http code is just what I needed. Here's a patch to make evdns_resolv_conf_parse return 1 if it fails to open the file.
-Richard --- evdns.c.orig 2006-10-17 19:22:10.000000000 +0200 +++ evdns.c 2006-10-17 19:22:48.000000000 +0200 @@ -1800,7 +1800,7 @@ fd = open(filename, O_RDONLY); if (fd < 0) { evdns_resolv_set_defaults(flags); - return 0; + return 1; } if (fstat(fd, &st)) { err = 2; goto out1; } _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users