]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Squid Assertion errorpage.cc:600: "entry->isEmpty()"
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 5 May 2015 15:59:56 +0000 (18:59 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 5 May 2015 15:59:56 +0000 (18:59 +0300)
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 95c64fbfb81a0ecc0ef29d0cd8229f9f86ddbf9f..78ce0c80ac3636e54bd58da3b6e629d9319935dc 100644 (file)
@@ -627,7 +627,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);
     }