- if ((cb->sock_info_last_update + dnsttl + cb->next_random_ttl) >= now) {
- DEBUG("write_tsdb plugin: too many getaddrinfo (%s, %s) failures", node,
- service);
- return (-1);
- }
-
- cb->sock_info_last_update = now;
- cb->next_random_ttl = new_random_ttl();
- status = getaddrinfo(node, service, &ai_hints, &(cb->sock_info));
+ status = getaddrinfo(node, service, &ai_hints, &cb->ai);