]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Marko <mr_4u2@yahoo.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 09:47:16 +0000 (22:47 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 09:47:16 +0000 (22:47 +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 fc11d6d0c48e83c31d58f23017addfab654765d4..559fceb64074eeeef06de433ab4e2532763f8dc7 100644 (file)
@@ -835,8 +835,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);