this.minSpareThreads = minSpareThreads;
if (running && executor!=null) {
if (executor instanceof java.util.concurrent.ThreadPoolExecutor) {
- ((java.util.concurrent.ThreadPoolExecutor)executor).setCorePoolSize(maxThreads);
+ ((java.util.concurrent.ThreadPoolExecutor)executor).setCorePoolSize(minSpareThreads);
} else if (executor instanceof ResizableExecutor) {
((ResizableExecutor)executor).resizePool(minSpareThreads, maxThreads);
}
<bug>50054</bug>: Correctly handle the setting of minSpareThreads in
AJP connector. (kfujino)
</fix>
+ <fix>
+ Set not maxThreads but minSpareThreads to corePoolSize, if
+ AbstractEndpoint.setMinSpareThreads is called. (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">