From 80948d4eb09986d58bec0445b5b546e5ad2f578d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 26 May 2010 16:55:21 +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 44afec3ecc..7a2f01aeba 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -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()); -- 2.47.2