Author: toad
Date: 2008-08-13 12:29:17 +0000 (Wed, 13 Aug 2008)
New Revision: 21800
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
Increase queue size
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-08-13 12:14:42 UTC (rev 21799)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-08-13 12:29:17 UTC (rev 21800)
@@ -557,14 +557,14 @@
/** The maximum number of requests that we will keep on the in-RAM
request
* starter queue. */
- static final int MAX_STARTER_QUEUE_SIZE = 100;
+ static final int MAX_STARTER_QUEUE_SIZE = 512; // two full segments
/** The above doesn't include in-flight requests. In-flight requests
will
* of course still have PersistentChosenRequest's in the database (on
disk)
* even though they are not on the starter queue and so don't count
towards
* the above limit. So we have a higher limit before we complain that
* something odd is happening.. (e.g. leaking
PersistentChosenRequest's). */
- static final int WARNING_STARTER_QUEUE_SIZE = 300;
+ static final int WARNING_STARTER_QUEUE_SIZE = 800;
private transient LinkedList<PersistentChosenRequest> starterQueue =
new LinkedList<PersistentChosenRequest>();