]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Marko <mr_4u2@yahoo.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 06:50:25 +0000 (19:50 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 06:50:25 +0000 (19:50 +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 6d25c694e7eac68543660deeefdabbab22050a5e..1d7c99daaf5bc210d1e2d998ce390fcc4994948a 100644 (file)
@@ -838,8 +838,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);