From: Amos Jeffries Date: Fri, 26 Nov 2010 01:45:52 +0000 (+1300) Subject: Debug display the latest orphan Comm::Connection X-Git-Tag: take08~55^2~124^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a61e5334202a19bab089d046a82ba9f75e4439;p=thirdparty%2Fsquid.git Debug display the latest orphan Comm::Connection --- diff --git a/src/comm/Connection.cc b/src/comm/Connection.cc index 73992d8fd3..766071020d 100644 --- a/src/comm/Connection.cc +++ b/src/comm/Connection.cc @@ -25,10 +25,11 @@ static int64_t lost_conn = 0; Comm::Connection::~Connection() { if (fd >= 0) { - debugs(5, 8, "NOTE: Orphaned Comm::Connections: " << ++lost_conn); + debugs(5, 0, "NOTE: Orphan Comm::Connection: " << *this); + debugs(5, 0, "NOTE: Orphaned Comm::Connections: " << ++lost_conn); + close(); } - close(); cbdataReferenceDone(_peer); }