Hi !

There are two instances of the FnpLinkManager created during startup 
(branch new_datastore):

java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack(Thread.java:1069)
    at Freenet.crypt.DiffieHellman.<init>(DiffieHellman.java:57)
    at Freenet.session.FnpLinkManager.<init>(FnpLinkManager.java:48)
    at Freenet.node.Main.main(Main.java:261)

java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack(Thread.java:1069)
    at Freenet.crypt.DiffieHellman.<init>(DiffieHellman.java:57)
    at Freenet.session.FnpLinkManager.<init>(FnpLinkManager.java:48)
    at Freenet.node.Main.startNode(Main.java:613)
    at Freenet.node.Main.main(Main.java:448)

each of them causes a DiffieHellman thread to be created, which does 
some expensive precalculation.
But there should only be one of them (imo).

Either one of the FnpLinkManager should be eleminated (Singleton object 
!?! ... since I do not really know, what these are for, I'd be happy if 
someone could tell me if this is the right way) or otherwise if the 
DiffieHellman class should become a singleton/flyweight.

Niklas


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to