]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Debug display the latest orphan Comm::Connection
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Nov 2010 01:45:52 +0000 (14:45 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Nov 2010 01:45:52 +0000 (14:45 +1300)
src/comm/Connection.cc

index 73992d8fd39614f57e25fc8b650d48a78b42b6ed..766071020d35ba77d803d669d7332d5d19fed158 100644 (file)
@@ -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);
 }