]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Marko <mr_4u2@yahoo.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 1 Feb 2010 00:32:21 +0000 (13:32 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 1 Feb 2010 00:32:21 +0000 (13:32 +1300)
Bug 2496: Downloading some variants in full before relaying

AKA, assertion failed: comm.cc:115: "ccb->active == false"
if the client disconnected before download finished arriving.

src/http.cc

index 739e33e7d2f3987813cc4a129e62638477b88aa6..c36cb2c80808c2f3feeeab8a4cc083b00ec077d1 100644 (file)
@@ -799,8 +799,9 @@ HttpStateData::haveParsedReplyHeaders()
 
         if (!vary) {
             entry->makePrivate();
+            if (!fwd->reforwardableStatus(rep->sline.status))
+                EBIT_CLR(entry->flags, ENTRY_FWD_HDR_WAIT);
             goto no_cache;
-
         }
 
         entry->mem_obj->vary_headers = xstrdup(vary);