Re: [tor-dev] [Patch] or/eventdns.c

2011-11-09 Thread Gisle Vanem
"Nick Mathewson" wrote: I can't merge this one because we're trying to minimize drift between Libevent's evdns.c and Tor's eventdns.c. Once we (eventually) require libevent 2.0, we can just throw out our own eventdns.c . I cannot see that my use of set_socket_nonblocking() and network_init(

Re: [tor-dev] [Patch] or/eventdns.c

2011-11-08 Thread Nick Mathewson
On Wed, Oct 19, 2011 at 3:24 PM, Gisle Vanem wrote: Ow. Sorry for the delay here. Patches that don't make it onto the bugtracker tend to drop off my radar far too easily. :( I can't merge this one because we're trying to minimize drift between Libevent's evdns.c and Tor's eventdns.c. Once we

[tor-dev] [Patch] or/eventdns.c

2011-10-19 Thread Gisle Vanem
I've made eventdns.c + '-DEVDNS_MAIN' compile and work under Windows / MSVC. Some simple patches: * Use set_socket_nonblocking() instead of the F_SETFL hacks. * Preserve the ret-val from evdns_config_windows_nameservers(). * In main(), call network_init() to call WSAStartup() etc. * Removed 'evdn