On Feb 11, 2008, at 1:23 PM, robert at freenetproject.org wrote:
> Author: robert
> Date: 2008-02-11 19:23:18 +0000 (Mon, 11 Feb 2008)
> New Revision: 17783
>
> Modified:
> trunk/freenet/src/freenet/node/NodeDispatcher.java
> Log:
> cleanup old routing contexts (i.e. memory leak)
>
>
> Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
> ===================================================================
> --- trunk/freenet/src/freenet/node/NodeDispatcher.java 2008-02-11
> 18:30:34 UTC (rev 17782)
> +++ trunk/freenet/src/freenet/node/NodeDispatcher.java 2008-02-11
> 19:23:18 UTC (rev 17783)
> @@ -5,6 +5,7 @@
>
> import java.util.HashSet;
> import java.util.Hashtable;
> +import java.util.Iterator;
>
> import freenet.crypt.HMAC;
> import freenet.crypt.SHA256;
> @@ -35,16 +36,20 @@
> *
> * Probably a few others; those are the important bits.
> */
> -public class NodeDispatcher implements Dispatcher {
> +public class NodeDispatcher implements Dispatcher, Runnable {
>
> private static boolean logMINOR;
> final Node node;
> private NodeStats nodeStats;
> +
> + private static final long STALE_CONTEXT=20000;
> + private static final long STALE_CONTEXT_CHECK=20000;
Matthew,
If you need more time for your probe requests, etc. Tweak these values.
--
Robert Hailey