Reconnect on getaddrinfo temporary failure.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>