copy->hier = hier; // Is it safe to copy? Should we?
copy->errType = errType;
+ copy->errDetail = errDetail;
// XXX: what to do with copy->peer_login?
errDetail = aDetail;
}
+void
+HttpRequest::clearError()
+{
+ debugs(11, 7, HERE << "old error details: " << errType << '/' << errDetail);
+ errType = ERR_NONE;
+ errDetail = ERR_DETAIL_NONE;
+}
+
const char *HttpRequest::packableURI(bool full_uri) const
{
if (full_uri)
/// sets error detail if no earlier detail was available
void detailError(err_type aType, int aDetail);
+ /// clear error details, useful for retries/repeats
+ void clearError();
protected:
void clean();
// this server link regardless of what happens when connecting to it.
// IF sucessfuly connected this top destination will become the serverConnection().
request->hier.note(serverDestinations[0], request->GetHost());
+ request->clearError();
connectStart();
} else {