proxychains-ng/tests
rofl0r af5c6f0c6a replace hostent lookup with better performing in-memory copy.
the central dns resolver function proxy_gethostbyname() used
to iterate over the gethostent() db (/etc/hosts) on each dns
request.
since this is not threadsafe, we synchronized access to it
previously using mutexes. the parsing of this file is slow,
and blocking all threads to do it even moreso.
since gethostent_r() is only available on a few platforms,
i decided to read the hostent db once and then use a quick
in-memory lookup on further usage.

+ some further refactoring.
2012-11-08 01:18:19 +01:00
..
test_getaddrinfo.c add test for getaddrinfo 2012-07-16 01:21:22 +02:00
test_gethostent.c move stringfromipv4 into common.c 2012-11-07 22:00:03 +01:00
test_gethostent_r.c replace hostent lookup with better performing in-memory copy. 2012-11-08 01:18:19 +01:00
test_proxy_gethostbyname.c move stringfromipv4 into common.c 2012-11-07 22:00:03 +01:00
test_shm.c failed attempt to use shared memory for the ip <-> dns mapping 2012-11-07 16:49:14 +01:00