Commit 60342bce authored by jehan's avatar jehan
Browse files

fix compilation issue and add EHOSTUNREACH to case dns server cnx is retried

parent 727db8b6
......@@ -113,6 +113,9 @@ static int find_best_clock_id (void) {
* As a result, we fallback to CLOCK_REALTIME until the OS correctly implement CLOCK_MONOTONIC according to POSIX specifications
*/
#ifdef __APPLE__
#ifdef CLOCK_REALTIME
#undef CLOCK_REALTIME
#endif
#define CLOCK_REALTIME BC_CLOCK_REALTIME
#endif
return CLOCK_REALTIME;
......
......@@ -7683,7 +7683,10 @@ exec:
dgoto(R->sp, DNS_R_FOREACH_A);
if ((error = dns_so_check(&R->so)) != 0){
if (error == DNS_ENETUNREACH || error == DNS_ECONNREFUSED || error == EINVAL){
if (error == DNS_ENETUNREACH
|| error == DNS_ECONNREFUSED
|| error == EINVAL
|| error == EHOSTUNREACH) { /* maybe even more case*/
dgoto(R->sp, DNS_R_FOREACH_A);
}else goto error;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment