On Saturday 12 January 2002 23:20, you wrote: > Should I be worried or look for in my log for something that might be > helpful? > > How many can leak before I should restart my node? > > Ed
Oskar, Tavin: Can I safely ignore these? (OCM: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/freenet/freenet/src/freenet/OpenConnectionManager.java ) private synchronized ConnectionHandler findFreeConnection(Identity id) { for (Enumeration e = chs.getAll(id) ; e.hasMoreElements() ; ) { ConnectionHandler res = (ConnectionHandler) e.nextElement(); if (!res.isOpen()) { System.err.println("ConnectionHandlers ARE LEAKING! (0)"); Core.logger.log(this, "ConnectionHandlers are leaking:" + res, Core.logger.MINOR); // BUG? This doesn't look right. Won't remove() be called // when the leaked connection handler is finalized? Core.diagnostics.occuranceCounting("liveConnections", -1); if (chs.removeElement(id, res)) openConns--; } else if (!res.sending()) { // found one return res; } } return null; } private synchronized ConnectionHandler findBestConnection(Identity id) { ConnectionHandler res, best = null; double resval, bestval = Double.POSITIVE_INFINITY; for (Enumeration e = chs.getAll(id) ; e.hasMoreElements() ; ) { res = (ConnectionHandler) e.nextElement(); if (!res.isOpen()) { System.err.println("ConnectionHandlers ARE LEAKING!(1)"); Core.logger.log(this, "ConnectionHandlers are leaking", Core.logger.MINOR); if (chs.removeElement(id, res)) openConns--; } else { resval = res.sendQueueSize() / res.transport().preference(); if (resval < bestval) { bestval = resval; best = res; } } } return best; } -- Freesites (0.3) freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage// (0.4) freenet:SSK at npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage// _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
