]> 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 04:55:21 +0000 (16:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 04:55:21 +0000 (16:55 +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 44afec3eccd31fc640cb8bc3c8a98833b7911f4c..7a2f01aeba05fb80ca6b5a6c5c1c6963c9703b17 100644 (file)
@@ -1522,8 +1522,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.buf() << ": " << value.buf() << "'");
 
     return new HttpHeaderEntry(id, name.buf(), value.buf());