From: Alex Rousskov Date: Tue, 10 Aug 2021 19:40:35 +0000 (-0400) Subject: Official code forgot to start the BodySink job X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb31601f54843a8a51c179a1590201709af2a860;p=thirdparty%2Fsquid.git Official code forgot to start the BodySink job The code probably worked fine because BodySink::start() does nothing as the job is a passive consumer. Discovered due to the new started_ assertion in AsyncJob::callEnd(). --- diff --git a/src/BodyPipe.cc b/src/BodyPipe.cc index 012ecb984a..96c78e11f1 100644 --- a/src/BodyPipe.cc +++ b/src/BodyPipe.cc @@ -335,6 +335,7 @@ BodyPipe::startAutoConsumptionIfNeeded() return; theConsumer = new BodySink(this); + AsyncJob::Start(theConsumer); debugs(91,7, HERE << "starting auto consumption" << status()); scheduleBodyDataNotification(); }