Skip to content

Commit

Permalink
TS-4801 Avoids marking parent down unless CONNECTION_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
zwoop committed Sep 1, 2016
1 parent 55c1a8f commit 59ed807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/http/HttpTransact.cc
Expand Up @@ -3675,7 +3675,9 @@ HttpTransact::handle_response_from_parent(State *s)
// Done trying parents... fail over to origin server if that is
// appropriate
DebugTxn("http_trans", "[handle_response_from_parent] Error. No more retries.");
s->parent_params->markParentDown(&s->parent_result);
if (s->current.state == CONNECTION_ERROR) {
s->parent_params->markParentDown(&s->parent_result);
}
s->parent_result.result = PARENT_FAIL;
next_lookup = find_server_and_update_current_info(s);
}
Expand Down

0 comments on commit 59ed807

Please sign in to comment.