Author: toad
Date: 2006-08-31 18:04:00 +0000 (Thu, 31 Aug 2006)
New Revision: 10307
Modified:
trunk/freenet/src/freenet/node/Node.java
trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Cache all local requests and inserts. This trades one vulnerability for
another...
Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java 2006-08-31 17:45:44 UTC (rev
10306)
+++ trunk/freenet/src/freenet/node/Node.java 2006-08-31 18:04:00 UTC (rev
10307)
@@ -175,13 +175,15 @@
* content, they know for sure that it was a local request.
* HOWEVER, if we don't do this, then a non-full seized
* datastore will contain everything requested by the user...
- * Also, remote probing is possible.
+ * Also, remote probing is possible by peers, although it is
+ * more difficult, and leaves more plausible deniability,
+ * than the first attack.
*
* So it may be useful on some darknets, and is useful for
* debugging, but in general should be off on opennet and
* most darknets.
*/
- public static final boolean DONT_CACHE_LOCAL_REQUESTS = true;
+ public static final boolean DONT_CACHE_LOCAL_REQUESTS = false;
public static final int PACKETS_IN_BLOCK = 32;
public static final int PACKET_SIZE = 1024;
public static final double DECREMENT_AT_MIN_PROB = 0.25;
Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java 2006-08-31 17:45:44 UTC
(rev 10306)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java 2006-08-31 18:04:00 UTC
(rev 10307)
@@ -183,7 +183,7 @@
healingQueue = new
SimpleHealingQueue(requestStarters.chkPutScheduler,
new InserterContext(tempBucketFactory,
tempBucketFactory, persistentTempBucketFactory,
random, 0, 2, 1, 0, 0, new
SimpleEventProducer(),
- false, uskManager),
RequestStarter.PREFETCH_PRIORITY_CLASS, 512 /* FIXME make configurable */);
+
!Node.DONT_CACHE_LOCAL_REQUESTS, uskManager),
RequestStarter.PREFETCH_PRIORITY_CLASS, 512 /* FIXME make configurable */);
}