From b5f93cf59198178402d09e713b291d07c27e95b8 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 20 Apr 2008 18:13:01 +1200 Subject: [PATCH] Author: Christos Tsantilas Bug 2311: crashes/restarts when ICAP enabled on respmod for HTTP body size greater than 100kb --- src/BodyPipe.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/BodyPipe.cc b/src/BodyPipe.cc index 71c12b00c1..4e10b1d14d 100644 --- a/src/BodyPipe.cc +++ b/src/BodyPipe.cc @@ -370,8 +370,11 @@ BodyPipeCheckout::BodyPipeCheckout(BodyPipe &aPipe): pipe(aPipe), BodyPipeCheckout::~BodyPipeCheckout() { - if (!checkedIn) - pipe.undoCheckOut(*this); + if (!checkedIn) { +// pipe.undoCheckOut(*this); + debugs(91, 2, "BodyPipeCheckout will gone without the checkin performed"); + pipe.checkIn(*this); + } } void -- 2.47.2