/*
- * $Id: forward.cc,v 1.73 2000/05/12 00:29:07 wessels Exp $
+ * $Id: forward.cc,v 1.74 2000/10/04 01:12:48 wessels Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
current = fwdState;
assert(fwdState->server_fd == server_fd);
if (status == COMM_ERR_DNS) {
- fwdState->flags.dont_retry = 1;
+ /*
+ * Only set the dont_retry flag if the DNS lookup fails on
+ * a direct connection. If DNS lookup fails when trying
+ * a neighbor cache, we may want to retry another option.
+ */
+ if (NULL == fs->peer)
+ fwdState->flags.dont_retry = 1;
debug(17, 4) ("fwdConnectDone: Unknown host: %s\n",
request->host);
err = errorCon(ERR_DNS_FAIL, HTTP_SERVICE_UNAVAILABLE);