Skip to content

Commit 51a2bf6

Browse files
committed
fix bad merge
1 parent 0ec9b17 commit 51a2bf6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

proxy/http/HttpTransact.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3571,7 +3571,11 @@ HttpTransact::handle_response_from_parent(State *s)
35713571
ink_assert(s->hdr_info.server_request.valid());
35723572

35733573
s->current.server->connect_result = ENOTCONN;
3574-
s->state_machine->do_hostdb_update_if_necessary();
3574+
// only mark the parent down in hostdb if the configuration allows it,
3575+
// see proxy.config.http.parent_proxy.mark_down_hostdb in records.config.
3576+
if (s->txn_conf->parent_failures_update_hostdb) {
3577+
s->state_machine->do_hostdb_update_if_necessary();
3578+
}
35753579

35763580
char addrbuf[INET6_ADDRSTRLEN];
35773581
DebugTxn("http_trans", "[%d] failed to connect to parent %s", s->current.attempts,
@@ -8291,6 +8295,7 @@ HttpTransact::build_redirect_response(State *s)
82918295
//////////////////////////
82928296
s->free_internal_msg_buffer();
82938297
s->internal_msg_buffer_fast_allocator_size = -1;
8298+
// template redirect#temporarily can not be used here since there is no way to pass the computed url to the template.
82948299
s->internal_msg_buffer = body_factory->getFormat(8192, &s->internal_msg_buffer_size, "%s <a href=\"%s\">%s</a>. %s.",
82958300
"The document you requested is now", new_url, new_url,
82968301
"Please update your documents and bookmarks accordingly", NULL);

0 commit comments

Comments
 (0)