]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 03:40:20 +0000 (15:40 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 03:40:20 +0000 (15:40 +1200)
Bug 2922: Fix assertion failed: HttpHeader.cc: "Headers[id].stat.aliveCount"

Fixed header accounting to avoid the "Headers[id].stat.aliveCount" assertion.

We were incrementing the alive header field counter twice for each decrement,
which probably resulted in the alive counter wrapping back to zero, triggering
the assertion.

src/HttpHeader.cc

index fdfefb52fcc35e6f08e597ad4775aaf413647354..f924320b67f5b25fb26f2a6d14d67119909c244c 100644 (file)
@@ -1534,8 +1534,6 @@ HttpHeaderEntry::parse(const char *field_start, const char *field_end)
 
     Headers[id].stat.seenCount++;
 
-    Headers[id].stat.aliveCount++;
-
     debugs(55, 9, "parsed HttpHeaderEntry: '" << name << ": " << value << "'");
 
     return new HttpHeaderEntry(id, name.termedBuf(), value.termedBuf());