From 14cfa4f29eced85a824c1e25a92b28a9365320ac Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 26 May 2010 15:40:20 +1200 Subject: [PATCH] Author: Alex Rousskov 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 | 2 -- 1 file changed, 2 deletions(-) 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()); -- 2.47.3