Author: toad
Date: 2008-06-21 16:05:36 +0000 (Sat, 21 Jun 2008)
New Revision: 20583
Modified:
branches/db4o/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
Boost priority of the beginning of the registration process, so it persists
quickly.
Having added a start token, it can then happily wait for a long time on the
NORM_PRIORITY queue to actually register itself.
Modified: branches/db4o/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2008-06-21 16:02:58 UTC (rev 20582)
+++ branches/db4o/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2008-06-21 16:05:36 UTC (rev 20583)
@@ -240,7 +240,7 @@
getter.start(container, context);
}
- }, NativeThread.NORM_PRIORITY,
false);
+ },
NativeThread.HIGH_PRIORITY-1, false); // user wants a response soon... but
doesn't want it to block the queue page etc
return; // Don't run the
start() below
}
} catch (IdentifierCollisionException e) {
@@ -306,7 +306,7 @@
putter.start(container,
context);
}
- }, NativeThread.NORM_PRIORITY, false);
+ }, NativeThread.HIGH_PRIORITY-1,
false); // user wants a response soon... but doesn't want it to block the queue
page etc
return; // Don't run the start() below
}
}
@@ -370,7 +370,7 @@
putter.start(container,
context);
}
- }, NativeThread.NORM_PRIORITY, false);
+ }, NativeThread.HIGH_PRIORITY-1, false); //
user wants a response soon... but doesn't want it to block the queue page etc
return; // Don't run the start() below
}