]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Emit service unavailable if the Server closes on us early
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Sep 2010 04:58:19 +0000 (16:58 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Sep 2010 04:58:19 +0000 (16:58 +1200)
src/forward.cc

index 0552a970257738d06b17b363e8a59c8b36f432f2..a6b09ec596b218f9ed1244e6813799fd3955cd8b 100644 (file)
@@ -521,6 +521,8 @@ FwdState::retryOrBail()
         // else bail. no more serverDestinations possible to try.
 
         // AYJ: cannot-forward error ??
+        ErrorState *anErr = errorCon(ERR_CONNECT_FAIL, HTTP_SERVICE_UNAVAILABLE, request);
+        errorAppendEntry(entry, anErr);
     }
 
     if (!err && shutting_down) {