]> granicus.if.org Git - libevent/commit
evdns: New flag to make evdns not prevent the event loop from exiting
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 27 Mar 2013 16:15:46 +0000 (20:15 +0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Apr 2013 14:43:12 +0000 (10:43 -0400)
commit6b7fa620e8b66aad6c17cda7c9a36e4ba6834f12
tree282d94618d36af277c26d8e12a988d5376ecad68
parent2fad0f3d52c6c7511231b1b2eced484306835a52
evdns: New flag to make evdns not prevent the event loop from exiting

Here is the brief description of problem:
When you are use evdns to resolve domains to IP adresses (see
./sample/dns-example) you loop never returns from event_base_dispatch(),
and because of this the program will never terminated.

Because existing programs may be depending on the old behavior, we
only apply the fix when evdns_base_new() is created with a new flag -
EVDNS_BASE_DISABLE_WHEN_INACTIVE.

 (Commit message edited by Nick while squashing the branch.)
evdns.c
include/event2/dns.h
sample/dns-example.c