Good. ALL threads in Fred MUST be daemonized from now on, except for the
one non-daemon keepalive thread.
On Thu, Jun 01, 2006 at 09:46:29AM +0000, bombe at freenetproject.org wrote:
> 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();
> }
>
> /**
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
--
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20060601/0aab9cad/attachment.pgp>