Latest squid never shows DNS errors for user. When the user tries to retrieve
web page from non-existent domain, ERR_CANNOT_FORWARD error appears,
which misleads both user and administrator.
connectStart();
} else {
- debugs(17, 3, HERE << entry->url());
- ErrorState *anErr = NULL;
- if (err) {
+ debugs(17, 3, HERE << "Connection failed: " << entry->url());
+ if (!err) {
+ ErrorState *anErr = NULL;
anErr = errorCon(ERR_CANNOT_FORWARD, HTTP_INTERNAL_SERVER_ERROR, request);
anErr->xerrno = errno;
+ fail(anErr);
} // else use actual error from last connection attempt
- fail(anErr);
self = NULL; // refcounted
}
}