From: Alex Rousskov Date: Sun, 23 May 2010 16:37:30 +0000 (-0600) Subject: Bug 2922 fix: assertion failed: HttpHeader.cc: "Headers[id].stat.aliveCount" X-Git-Tag: SQUID_3_2_0_1~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=253939cd4e46276c731af51424ad6cf7be8921f8;p=thirdparty%2Fsquid.git 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. --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index fdfefb52fc..f924320b67 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -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());