Author: toad
Date: 2008-02-23 21:23:38 +0000 (Sat, 23 Feb 2008)
New Revision: 18138
Modified:
trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
Log:
Reduce default max retries for splitfile blocks in HighLevelSimpleClientImpl to
2.
It has not been true that the first try is datastore only for a long time - we
check the store on registration, not on an actual try.
Modified: trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
===================================================================
--- trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
2008-02-23 19:40:43 UTC (rev 18137)
+++ trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
2008-02-23 21:23:38 UTC (rev 18138)
@@ -51,10 +51,8 @@
static final boolean DONT_ENTER_IMPLICIT_ARCHIVES = true;
/** Number of threads used by a splitfile fetch */
static final int SPLITFILE_THREADS = 20;
- /** Number of retries allowed per block in a splitfile. Must be at
least 1 as
- * on the first try we just check the datastore.
- */
- static final int SPLITFILE_BLOCK_RETRIES = 3;
+ /** Number of retries allowed per block in a splitfile. */
+ static final int SPLITFILE_BLOCK_RETRIES = 2;
/** Number of retries allowed on non-splitfile fetches. Unlike above,
we always
* go to network. */
static final int NON_SPLITFILE_RETRIES = 2;