On Tue, 2016-11-29 at 14:51 +0500, Garri Djavadyan wrote:
> Hello,
> 
> Please review the attached patch prepared for r14958, it fixes the
> If-
> None-Match processing (incorrect logging [1]) and the bug [2] report
> 4169 depending on the incorrect (IMO) behavior.
> 
> An If-None-Match request for a non-matched (ETag) but cached object
> should be processed as normal HIT.
> 
> [1] http://lists.squid-cache.org/pipermail/squid-users/2016-November/
> 01
> 3483.html
> [2] http://bugs.squid-cache.org/show_bug.cgi?id=4169
> 
> Thanks.
> 
> Garri

I've attached second version of the patch. In the first version I
removed strings (not related to the fix) which mark a request as non-
IMS, because I thought the same request could not
enter processConditional twice and the removed actions are redundant.
Now I'm not sure about it.

Garri
=== modified file 'src/client_side_reply.cc'
--- src/client_side_reply.cc	2016-11-11 04:28:06 +0000
+++ src/client_side_reply.cc	2016-11-29 12:33:08 +0000
@@ -804,9 +804,7 @@
             r.ims = -1;
             r.imslen = 0;
             r.header.delById(Http::HdrType::IF_MODIFIED_SINCE);
-            http->logType = LOG_TCP_MISS;
-            sendMoreData(result);
-            return true;
+            return false;
         }
 
         if (!r.flags.ims) {

_______________________________________________
squid-dev mailing list
[email protected]
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to