Skip to content

Commit b70ee2b

Browse files
authored
Remove redundant DNS query in code example (#19)
1 parent 36d0e9b commit b70ee2b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ int main()
9797
/* Wait for the calculated backoff period before the next retry attempt of querying DNS.
9898
* As usleep() takes nanoseconds as the parameter, we multiply the backoff period by 1000. */
9999
( void ) usleep( nextRetryBackoff * 1000U );
100-
101-
/* Retry the DNS lookup for the host name. */
102-
dnsStatus = getaddrinfo( serverAddress, NULL, &hints, pListHead );
103100
}
104101
} while( ( dnsStatus != 0 ) && ( retryStatus != BackoffAlgorithmRetriesExhausted ) );
105102

0 commit comments

Comments
 (0)