--------------------- PatchSet 12004 Date: 2008/03/18 02:48:19 Author: hno Branch: SQUID_2_7 Tag: (none) Log: Author: Mark Nottingham Bug #2171: Async refresh forwarding loops between sibling peers Async refresh forgot to account for CC Only-If-cached, causing unintentional forwarding loops between siblings. Members: src/client_side.c:1.754.2.3->1.754.2.4 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.754.2.3 retrieving revision 1.754.2.4 diff -u -r1.754.2.3 -r1.754.2.4 --- squid/src/client_side.c 23 Jan 2008 11:00:46 -0000 1.754.2.3 +++ squid/src/client_side.c 18 Mar 2008 02:48:19 -0000 1.754.2.4 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.754.2.3 2008/01/23 11:00:46 hno Exp $ + * $Id: client_side.c,v 1.754.2.4 2008/03/18 02:48:19 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2416,7 +2416,7 @@ debug(33, 2) ("clientProcessHit: offline HIT\n"); http->log_type = LOG_TCP_OFFLINE_HIT; stale = 0; - } else if (stale == -2) { + } else if (stale == -2 && !clientOnlyIfCached(http)) { debug(33, 2) ("clientProcessHit: stale-while-revalidate needs revalidation\n"); clientAsyncRefresh(http); http->log_type = LOG_TCP_STALE_HIT;