[squid-users] Squid 3.5.16 and vary loop objects (bug ?)

joe chip_pop at hotmail.com
Mon Apr 4 11:30:06 UTC 2016


FredB wrote
>> Objet: Re: [squid-users] Squid 3.5.16 and vary loop objects (bug ?)
>> 
>> intercept  ??
> 
> No, implicit proxy 
> 
>> i got excellent result but not the correct way its and old issue
>> may be i was not posting the issue in correct way for the dev... to
>> understand
> 
> Very recent for me, not problem with 6 proxies and squid 3.5.13 but
> present with 2 new 3.5.16
> 
> _______________________________________________
> squid-users mailing list

> squid-users at .squid-cache

> http://lists.squid-cache.org/listinfo/squid-users

mmm code ar the same must be something else corrupt the vary before
varyEvaluateMatch()

i can provide testing patch    just for testing  .. not for production until
they find the right cause
but   make shurr the header ar  public for those link might be your
situation ar diff...

diff -Naur src/client_side.cc src/client_side.cc
--- src/client_side.cc	2016-04-02 03:38:47.000000000 +0300
+++ src/client_side.cc	2016-04-03 16:47:02.000000000 +0300
@@ -4725,13 +4725,26 @@
             if (!vary.isEmpty())
                 request->vary_headers = vary;
         }
+        if (vary.isEmpty()) {
+            vary = entry->mem_obj->vary_headers;
+
+            if (!vary.isEmpty())
+                request->vary_headers = vary;
+        }
 
         if (vary.isEmpty()) {
             /* Ouch.. we cannot handle this kind of variance */
             /* XXX This cannot really happen, but just to be complete */
             return VARY_CANCEL;
+
         } else if (vary.cmp(entry->mem_obj->vary_headers) == 0) {
             return VARY_MATCH;
+
+        } else if (vary.cmp(httpMakeVaryMark(request, entry->getReply()))
== 0) {
+            return VARY_MATCH;
+
+        } else if (!vary.isEmpty() &&
!entry->mem_obj->vary_headers.isEmpty()) {
+            return VARY_MATCH;
         } else {
             /* Oops.. we have already been here and still haven't
              * found the requested variant. Bail out




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-3-5-16-and-vary-loop-objects-bug-tp4676901p4676908.html
Sent from the Squid - Users mailing list archive at Nabble.com.


More information about the squid-users mailing list