Edit

kc3-lang/libevent/test

Branch :

  • Show log

    Commit

  • Author : Nick Mathewson
    Date : 2009-12-07 17:21:41
    Hash : 72dd6667
    Message : evdns_getaddrinfo() now supports the /etc/hosts file. The regular blocking evutil_getaddrinfo() already supported /etc/hosts by falling back to getaddrinfo() or gethostbyname(). But evdns_getaddrinfo() had no such facility. Now it does. The data structure here isn't very clever. I guess people with huge /etc/hosts files will either need to get out of the 1980s, or submit a patch to this code so that it uses a hashtable instead of a linked list. Includes basic unit tests.