View | Details | Raw Unified | Return to bug 50003
Collapse All | Expand All

(-)java/org/apache/tomcat/util/net/AbstractEndpoint.java (-1 / +1 lines)
Lines 234-240 Link Here
234
        this.minSpareThreads = minSpareThreads;
234
        this.minSpareThreads = minSpareThreads;
235
        if (running && executor!=null) {
235
        if (running && executor!=null) {
236
            if (executor instanceof java.util.concurrent.ThreadPoolExecutor) {
236
            if (executor instanceof java.util.concurrent.ThreadPoolExecutor) {
237
                ((java.util.concurrent.ThreadPoolExecutor)executor).setCorePoolSize(maxThreads);
237
                ((java.util.concurrent.ThreadPoolExecutor)executor).setCorePoolSize(minSpareThreads);
238
            } else if (executor instanceof ResizableExecutor) {
238
            } else if (executor instanceof ResizableExecutor) {
239
                ((ResizableExecutor)executor).resizePool(minSpareThreads, maxThreads);
239
                ((ResizableExecutor)executor).resizePool(minSpareThreads, maxThreads);
240
            }
240
            }

Return to bug 50003