From: Amos Jeffries Date: Mon, 13 Sep 2010 04:58:19 +0000 (+1200) Subject: Emit service unavailable if the Server closes on us early X-Git-Tag: take08~55^2~124^2~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b613676bceddc576f46048cb1d9838718fad6fc;p=thirdparty%2Fsquid.git Emit service unavailable if the Server closes on us early --- diff --git a/src/forward.cc b/src/forward.cc index 0552a97025..a6b09ec596 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -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) {