NTCP: Fix number of SendFinisher threads (ticket #2438)

This commit is contained in:
zzz
2019-02-25 15:58:29 +00:00
parent 3c911ee298
commit 16421fa0b6

View File

@@ -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());
}
}