}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_ADD_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_FWD_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_ADD_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REPLACE_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_FWD_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REPLACE_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REPLACE_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_REV_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REPLACE_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_ADDRS_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_FWD_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_ADDRS_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
- case DNSClient::OTHER:
- // We couldn't send to the current server, log it and set up
+ // No response from the server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
- LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_RRS_IO_ERROR)
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_RRS_TIMEOUT)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
.arg(getCurrentServer()->toText());
retryTransition(PROCESS_TRANS_FAILED_ST);
break;
+ case DNSClient::OTHER:
+ // We couldn't send to the current server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_RRS_IO_ERROR)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ // @note same commentary as in TIMEOUT above case.
+ retryTransition(PROCESS_TRANS_FAILED_ST);
+ break;
+
case DNSClient::INVALID_RESPONSE:
// A response was received but was corrupt. Retry it like an IO
// error.
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REMOVE_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ // If we are out of retries on this server, we go back and start
+ // all over on a new server.
+ retryTransition(SELECTING_REV_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REMOVE_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_ADD_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_FWD_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_ADD_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REPLACE_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ // If we are out of retries on this server, we go back and start
+ // all over on a new server.
+ retryTransition(SELECTING_REV_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REPLACE_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_RRS_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ retryTransition(SELECTING_FWD_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_FORWARD_REMOVE_RRS_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())
}
case DNSClient::TIMEOUT:
+ // No response from the server, log it and set up
+ // to select the next server for a retry.
+ LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REMOVE_TIMEOUT)
+ .arg(getRequestId())
+ .arg(getNcr()->getFqdn())
+ .arg(getCurrentServer()->toText());
+
+ // If we are out of retries on this server, we go back and start
+ // all over on a new server.
+ retryTransition(SELECTING_REV_SERVER_ST);
+ break;
+
case DNSClient::OTHER:
// We couldn't send to the current server, log it and set up
// to select the next server for a retry.
- // @note For now we treat OTHER as an IO error like TIMEOUT. It
- // is not entirely clear if this is accurate.
LOG_ERROR(d2_to_dns_logger, DHCP_DDNS_REVERSE_REMOVE_IO_ERROR)
.arg(getRequestId())
.arg(getNcr()->getFqdn())