From: Eduard Bagdasaryan Date: Thu, 9 Jul 2020 11:16:27 +0000 (+0300) Subject: Use a more suitable ERR_GATEWAY_FAILURE error code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=764718b5f0cd55e7c7c9f39a8ae80daad6cd67b9;p=thirdparty%2Fsquid.git Use a more suitable ERR_GATEWAY_FAILURE error code when reacting to a general error in FwdState::advanceDestination(). --- 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();