I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 16421fa0 authored by zzz's avatar zzz
Browse files

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

parent 3c911ee2
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment