Author: nextgens
Date: 2008-08-12 17:43:55 +0000 (Tue, 12 Aug 2008)
New Revision: 21771
Modified:
trunk/freenet/src/freenet/crypt/DiffieHellman.java
Log:
DiffieHellman: tweak the settings
Modified: trunk/freenet/src/freenet/crypt/DiffieHellman.java
===================================================================
--- trunk/freenet/src/freenet/crypt/DiffieHellman.java 2008-08-12 17:11:25 UTC
(rev 21770)
+++ trunk/freenet/src/freenet/crypt/DiffieHellman.java 2008-08-12 17:43:55 UTC
(rev 21771)
@@ -21,7 +21,7 @@
* When the number of precalculations falls below this threshold
generation
* starts up to make more.
*/
- private static final int PRECALC_RESUME =
FNPPacketMangler.DH_CONTEXT_BUFFER_SIZE / 2;
+ private static final int PRECALC_RESUME =
FNPPacketMangler.DH_CONTEXT_BUFFER_SIZE;
/** Maximum number of precalculations to create. */
private static final int PRECALC_MAX =
FNPPacketMangler.DH_CONTEXT_BUFFER_SIZE * 2;
@@ -50,7 +50,7 @@
private static class PrecalcBufferFill extends NativeThread {
public PrecalcBufferFill() {
- super("Diffie-Hellman-Precalc",
NativeThread.LOW_PRIORITY, false);
+ super("Diffie-Hellman-Precalc",
NativeThread.MIN_PRIORITY, false);
setDaemon(true);
}