build handler threads advanced config option

This commit is contained in:
zzz
2011-10-29 13:19:59 +00:00
parent 33d566be36
commit e3723d7c9f

View File

@ -80,6 +80,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
numHandlerThreads = 2;
else
numHandlerThreads = 1;
numHandlerThreads = ctx.getProperty("router.buildHandlerThreads", numHandlerThreads);
for (int i = 1; i <= numHandlerThreads; i++) {
I2PThread hThread = new I2PThread(_handler, "BuildHandler " + i + '/' + numHandlerThreads, true);
hThread.start();