From: Amos Jeffries Date: Tue, 21 Oct 2008 11:25:14 +0000 (+1300) Subject: Bug 2492: assertion failed: Server.cc:70: "!requestBodySource" X-Git-Tag: SQUID_3_2_0_1~1388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c251cca0a3e7ff597566d1f1ca40cef5d2f4f7;p=thirdparty%2Fsquid.git Bug 2492: assertion failed: Server.cc:70: "!requestBodySource" Paranoid: check that swanSong has been called Extra paranoia: run before exiting swanSong. I really mean it. They MUST pass here. --- diff --git a/src/Server.cc b/src/Server.cc index 606b6881e8..12b00a51f6 100644 --- a/src/Server.cc +++ b/src/Server.cc @@ -103,6 +103,14 @@ ServerStateData::swanSong() Initiator::swanSong(); BodyProducer::swanSong(); #endif + + // paranoid: check that swanSong has been called + // extra paranoid: yeah, I really mean it. they MUST pass here. + assert(!requestBodySource); +#if USE_ADAPTATION + assert(!virginBodyDestination); + assert(!adaptedBodySource); +#endif }