From 764718b5f0cd55e7c7c9f39a8ae80daad6cd67b9 Mon Sep 17 00:00:00 2001 From: Eduard Bagdasaryan Date: Thu, 9 Jul 2020 14:16:27 +0300 Subject: [PATCH] Use a more suitable ERR_GATEWAY_FAILURE error code when reacting to a general error in FwdState::advanceDestination(). --- src/FwdState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FwdState.cc b/src/FwdState.cc index 94b5dbe699..57be02b16b 100644 --- a/src/FwdState.cc +++ b/src/FwdState.cc @@ -799,7 +799,7 @@ FwdState::advanceDestination(const char *stepDescription, const Comm::Connection debugs (17, 2, "exception while trying to " << stepDescription << ": " << CurrentException); closePendingConnection(conn, "connection preparation exception"); if (!err) { - auto error = new ErrorState(ERR_CONNECT_FAIL, Http::scInternalServerError, request, al); + auto error = new ErrorState(ERR_GATEWAY_FAILURE, Http::scInternalServerError, request, al); fail(error); } retryOrBail(); -- 2.47.3