Question about res_init()

borg at uu3.net borg at uu3.net
Tue Sep 8 14:57:04 CEST 2015


Hello.

I have some doubts about this commit:
09d60499af3acef2ba9bd7be15e8d1c44249f8d5
Always call res_init() before getaddrinfo().

Im not sure if this is really a good idea to call
res_init() so often. In UNIX, resolv.conf does NOT really
change.. and if it changes ever.. its not a problem to restart
affected processes.

Does anyone think about any ill-effects res_init() can do
when called often? Leaks?

Regards,
Borg



More information about the tinc-devel mailing list