Re: Bug in squid-1.1.4 -> squid-1.1.6?

From: Duane Wessels <wessels@dont-contact.us>
Date: Wed, 19 Feb 97 14:43:41 -0800

james@iafrica.com writes:

>We have discovered a weird bug or problem in squid from version 1.1.4 to
>1.1.6.
>
>We have a Sun Ultra II running Solaris, 512MB RAM
>
>Squid normally uses about 15-20% CPU. All of a sudden the CPU usage goes
>up to around 70% and the messages as well as cache.log get entries like
>this.
>
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: --> 0 < 4096
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: -->
>'http://www.keyview.com/bu
>tton_bar/roll/Tech_Sup_b.gif'
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: --> 0 < 4096
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: -->
>'http://www.keyview.com/bu
>tton_bar/roll/Product_b.gif'
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: --> 0 < 4096
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: -->
>'http://www.keyview.com/bu
>tton_bar/roll/Tech_Sup_b.gif'
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: --> 0 < 4096
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: -->
>'http://www.keyview.com/bu
>tton_bar/roll/Product_b.gif'
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: --> 0 < 4096
>Feb 12 14:18:17 proxy01.iafrica.com squid[16350]: -->
>'http://www.keyview.com/bu
>tton_bar/roll/Tech_Sup_b.gif'
>
>This continues for long periods (sometimes hours) and fills up the log
>files.
>
>Has anybody else experienced this behaviour?

Try this patch:

Index: src/client_side.c
===================================================================
RCS file: /surf1/CVS/squid/src/client_side.c,v
retrieving revision 1.88
diff -w -u -r1.88 client_side.c
--- client_side.c 1997/02/07 04:57:10 1.88
+++ client_side.c 1997/02/19 17:10:45
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.c,v 1.88 1997/02/07 04:57:10 wessels Exp $
+ * $Id: client_side.c,v 1.89 1997/02/13 18:38:28 wessels Exp $
  *
  * DEBUG: section 33 Client-side Routines
  * AUTHOR: Duane Wessels
@@ -430,6 +430,7 @@
        icpState->method);
     /* NOTE, don't call storeLockObject(), storeCreateEntry() does it */
     storeClientListAdd(entry, fd, 0);
+ storeClientListAdd(icpState->old_entry, fd, 0);
 
     entry->lastmod = icpState->old_entry->lastmod;
     debug(33, 5, "icpProcessExpired: setting lmt = %d\n",

Duane W.
Received on Wed Feb 19 1997 - 14:57:16 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:30 MST