Author: bombe
Date: 2006-06-01 09:46:25 +0000 (Thu, 01 Jun 2006)
New Revision: 8965

Modified:
   trunk/freenet/src/freenet/clients/http/Spider.java
Log:
daemonize plugin starter thread

Modified: trunk/freenet/src/freenet/clients/http/Spider.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/Spider.java  2006-06-01 06:42:13 UTC 
(rev 8964)
+++ trunk/freenet/src/freenet/clients/http/Spider.java  2006-06-01 09:46:25 UTC 
(rev 8965)
@@ -57,7 +57,7 @@
        private final HashMap urisByWord = new HashMap();

        // Can have many; this limit only exists to save memory.
-       private final int maxParallelRequests = 200;
+       private final int maxParallelRequests = 20;
        private int maxShownURIs = 50;

        private Node node;
@@ -418,11 +418,13 @@
                for (int i = 0; i < initialURIs.length; i++)
                        queueURI(initialURIs[i]);
                stopped = false;
-               new Thread() {
+               Thread starterThread = new Thread("Spider Plugin Starter") {
                        public void run() {
                                startSomeRequests();
                        }
-               }.start();
+               };
+               starterThread.setDaemon(true);
+               starterThread.start();
        }

        /**


Reply via email to