From 60a385742b6934c9fd7420b76c9e344e642a3cf6 Mon Sep 17 00:00:00 2001 From: romanman Date: Thu, 22 May 2014 21:10:52 +0300 Subject: [PATCH] Fix for peer discovery thread pool config --- .../java/org/ethereum/net/peerdiscovery/PeerDiscovery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java index 2b7f4325..c992eeae 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/PeerDiscovery.java @@ -38,8 +38,8 @@ public class PeerDiscovery { threadFactory = Executors.defaultThreadFactory(); //creating the ThreadPoolExecutor - executorPool = new ThreadPoolExecutor(1, config.peerDiscoveryWorkers(), 10, TimeUnit.SECONDS, - new ArrayBlockingQueue(2), threadFactory, rejectionHandler); + executorPool = new ThreadPoolExecutor(1, 1000, 10, TimeUnit.SECONDS, + new ArrayBlockingQueue(config.peerDiscoveryWorkers()), threadFactory, rejectionHandler); //start the monitoring thread monitor = new PeerDiscoveryMonitorThread(executorPool, 3);