Fixes an issue where a debug build of ATS will fail
the assertion in HttpTransact::handle_parent_died() when
proxy.config.http.no_dns_just_forward_to_parent is enabled
and there is no parent.config or strategy rule for the request.
Also this provides a log warning for both debug and release
builds of this condition.
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index ffd5814..0ca1763 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -538,6 +538,13 @@
     return HttpTransact::HOST_NONE;
 
   case PARENT_DIRECT:
+    // if the configuration does not allow the origin to be dns'd
+    // we're unable to go direct to the origin.
+    if (s->http_config_param->no_dns_forward_to_parent) {
+      Warning("no available parents and the config proxy.config.http.no_dns_just_forward_to_parent, prevents origin lookups.");
+      s->parent_result.result = PARENT_FAIL;
+      return HttpTransact::HOST_NONE;
+    }
   /* fall through */
   default:
     update_current_info(&s->current, &s->server_info, HttpTransact::ORIGIN_SERVER, (s->current.attempts)++);