]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use a more suitable ERR_GATEWAY_FAILURE error code
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 9 Jul 2020 11:16:27 +0000 (14:16 +0300)
committerEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 9 Jul 2020 11:16:27 +0000 (14:16 +0300)
when reacting to a general error in FwdState::advanceDestination().

src/FwdState.cc

index 94b5dbe699a8d3fde40158b6e0ea2bc38b7713b5..57be02b16b7192cc7e8056b6ac842fbc982027f5 100644 (file)
@@ -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();