ecore-con - simplify down to a single libc resolver
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 22 May 2016 08:03:26 +0000 (17:03 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 24 May 2016 00:20:49 +0000 (09:20 +0900)
commit1eba9d9de026d9ec28aa5b42457b144e437dbfe3
treea081fc4b41fc3c79258425953fa4a5792924bc61
parent6e23780bb13fdc16a2034d01bf3fc06a2355fbee
ecore-con - simplify down to a single libc resolver

Summary:
this removes the cares/ares based resolver and the compiled-in dns.c
resolver, modified the getaddrinfo based resolver to use threads not
forking (almost halving its size) and now makes that the only resolver
we have. getaddrinfo handles ipv6 and ipv4 (according to docs). this
simplifies code paths, drops code size of the efl tree by about 11k
lines of code, makes it easier to test and more robust to future
changes with ip resolving as it now just relies on libc. we won't have
coverity complaints on dns.c imported code anymore to fix and don't
have tokeep up with bugfixes/security from the upstream imported code.
this means we use a single resolver on all platforms (windows, mac,
linux) as opposed to before where cares was used for windows, and
dns.c on linux/mac. oh and the forking original was broken since our
move to eo too. so it couldnt even compile if enabled, letalone work.

so fix bug with missing /etc/resolv.conf that dns.c couldn't cope
with, fix testability, fix maintainability and reduce efl codebase size.

this fixes T3668

@fix
@improve

Subscribers: cedric, seoz, jpeg

Maniphest Tasks: T3668

Differential Revision: https://phab.enlightenment.org/D3971
configure.ac
src/Makefile_Ecore_Con.am
src/lib/ecore_con/ecore_con_ares.c [deleted file]
src/lib/ecore_con/ecore_con_dns.c [deleted file]
src/lib/ecore_con/ecore_con_info.c
src/static_libs/dns/dns.c [deleted file]
src/static_libs/dns/dns.h [deleted file]