Author: toad
Date: 2008-02-23 21:31:35 +0000 (Sat, 23 Feb 2008)
New Revision: 18142
Modified:
trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
Log:
... with a maximum in case we increase COOLDOWN_RETRIES.
Modified: trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
===================================================================
--- trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
2008-02-23 21:29:29 UTC (rev 18141)
+++ trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
2008-02-23 21:31:35 UTC (rev 18142)
@@ -55,10 +55,10 @@
// COOLDOWN_RETRIES-1 so we don't have to wait on the cooldown queue;
HLSC is designed
// for interactive requests mostly.
/** Number of retries allowed per block in a splitfile. */
- static final int SPLITFILE_BLOCK_RETRIES =
RequestScheduler.COOLDOWN_RETRIES-1;
+ static final int SPLITFILE_BLOCK_RETRIES = Math.min(3,
RequestScheduler.COOLDOWN_RETRIES-1);
/** Number of retries allowed on non-splitfile fetches. Unlike above,
we always
* go to network. */
- static final int NON_SPLITFILE_RETRIES =
RequestScheduler.COOLDOWN_RETRIES-1;
+ static final int NON_SPLITFILE_RETRIES = Math.min(3,
RequestScheduler.COOLDOWN_RETRIES-1);
/** Whether to fetch splitfiles. Don't turn this off! */
static final boolean FETCH_SPLITFILES = true;
/** Whether to follow redirects etc. If false, we only fetch a plain
block of data.