]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix assertion errorpage.cc:600: "entry->isEmpty()"
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Sat, 9 May 2015 11:40:55 +0000 (04:40 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 9 May 2015 11:40:55 +0000 (04:40 -0700)
While squid shuting down, aborted transactions, for which body data already
downloaded, can cause this bug.

This is a Measurement Factory project

src/FwdState.cc

index e25f3d449e8c2dff300aa9ac4d8ca80b5327e854..7fea9e259cb7391667774aa2301012b38626f61b 100644 (file)
@@ -625,7 +625,7 @@ FwdState::retryOrBail()
 
     request->hier.stopPeerClock(false);
 
-    if (self != NULL && !err && shutting_down) {
+    if (self != NULL && !err && shutting_down && entry->isEmpty()) {
         ErrorState *anErr = new ErrorState(ERR_SHUTTING_DOWN, Http::scServiceUnavailable, request);
         errorAppendEntry(entry, anErr);
     }