Author: toad
Date: 2008-04-30 21:55:00 +0000 (Wed, 30 Apr 2008)
New Revision: 19638

Modified:
   trunk/freenet/src/freenet/node/NodeStarter.java
Log:
Move signalStarting() further up start() to prevent timeouts happening early on 
on very slow systems.

Modified: trunk/freenet/src/freenet/node/NodeStarter.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStarter.java     2008-04-30 21:45:07 UTC 
(rev 19637)
+++ trunk/freenet/src/freenet/node/NodeStarter.java     2008-04-30 21:55:00 UTC 
(rev 19638)
@@ -114,6 +114,9 @@

        executor.start();

+       // Prevent timeouts for a while. The DiffieHellman init for example 
could take some time on a very slow system.
+       WrapperManager.signalStarting(500000);
+       
        // Setup RNG
        RandomSource random = new Yarrow();

@@ -152,7 +155,6 @@
        SubConfig sslConfig = new SubConfig("ssl", cfg);
        SSL.init(sslConfig);

-       WrapperManager.signalStarting(500000);
        try {
                node = new Node(cfg, random, logConfigHandler,this, executor);
                node.start(false);


Reply via email to