forked from I2P_Developers/i2p.i2p
NTCP: Fix number of SendFinisher threads (ticket #2438)
This commit is contained in:
@@ -68,7 +68,7 @@ class NTCPSendFinisher {
|
||||
private static class CustomThreadPoolExecutor extends ThreadPoolExecutor {
|
||||
public CustomThreadPoolExecutor(int num) {
|
||||
// use unbounded queue, so maximumPoolSize and keepAliveTime have no effect
|
||||
super(MIN_THREADS, num, 10*1000, TimeUnit.MILLISECONDS,
|
||||
super(num, num, 10*1000, TimeUnit.MILLISECONDS,
|
||||
new LinkedBlockingQueue<Runnable>(), new CustomThreadFactory());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user