mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 02:12:54 +00:00
NTCP: Fix number of SendFinisher threads (ticket #2438)
This commit is contained in:
1 parent
3c911ee298
commit
16421fa0b6
1 file changed
+1
-1
@@ -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