Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c
These error codes should be treated like other unreachable error
codes.
(cherry picked from commit 180b1e7939)
This commit is contained in:
@@ -1920,7 +1920,9 @@ resquery_senddone(isc_result_t eresult, isc_region_t *region, void *arg) {
|
||||
case ISC_R_SHUTTINGDOWN:
|
||||
break;
|
||||
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_NOPERM:
|
||||
case ISC_R_ADDRNOTAVAIL:
|
||||
@@ -2994,8 +2996,10 @@ resquery_connected(isc_result_t eresult, isc_region_t *region, void *arg) {
|
||||
fctx_done_detach(&fctx, eresult);
|
||||
break;
|
||||
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_CONNREFUSED:
|
||||
case ISC_R_NOPERM:
|
||||
case ISC_R_ADDRNOTAVAIL:
|
||||
@@ -8175,7 +8179,9 @@ rctx_dispfail(respctx_t *rctx) {
|
||||
*/
|
||||
switch (rctx->result) {
|
||||
case ISC_R_EOF:
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_CONNREFUSED:
|
||||
case ISC_R_CONNECTIONRESET:
|
||||
|
||||
Reference in New Issue
Block a user