Add non-blocking DNS lookup.
commite75e791528ef5efbdc1023653ba59db277ffd922
authorBen Kibbey <bjk@luxsci.net>
Thu, 1 Oct 2015 00:18:59 +0000 (30 20:18 -0400)
committerBen Kibbey <bjk@luxsci.net>
Thu, 1 Oct 2015 01:57:07 +0000 (30 21:57 -0400)
tree29371f4dfdc14abb55e13aafbbeb31800614b1e6
parent625dda9550726775ed7337ddaf14304e33d8d6b1
Add non-blocking DNS lookup.

Have getaddrinfo() be done in another thread to prevent blocking. This
allows the lookup to be timed out and cancelled. Note that OS support
for pthread_cancel() is required to prevent waiting for pthread_join()
(or return from gettaddrinfo()) to complete.
configure.ac
src/libpwmd.c
src/ssh.c
src/tls.c
src/types.h