fix typo adresses -> addresses
reconnect on getaddrinfo temporary failure