]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bump assert Connection.cc:29 down to a debug notice about Orphan FD (leaked)
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 6 Sep 2011 08:38:27 +0000 (20:38 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 6 Sep 2011 08:38:27 +0000 (20:38 +1200)
src/comm/Connection.cc

index 628d054d7d374768a729da6c3cf78785ef2cc1d3..1c50995fd5ccc114f60ac34bca97d4737c0cdb5c 100644 (file)
@@ -26,11 +26,9 @@ Comm::Connection::Connection() :
 static int64_t lost_conn = 0;
 Comm::Connection::~Connection()
 {
-    assert(fd < 0); // These should never occur now.
-
     if (fd >= 0) {
-        debugs(5, 0, "NOTE: Orphan Comm::Connection: " << *this);
-        debugs(5, 0, "NOTE: Orphaned Comm::Connections: " << ++lost_conn);
+        debugs(5, 0, "BUG: Orphan Comm::Connection: " << *this);
+        debugs(5, 0, "NOTE: " << ++lost_conn << " Orphans since last started.");
         close();
     }