Lines 57-63
Link Here
|
57 |
import org.apache.juli.logging.Log; |
57 |
import org.apache.juli.logging.Log; |
58 |
import org.apache.juli.logging.LogFactory; |
58 |
import org.apache.juli.logging.LogFactory; |
59 |
import org.apache.tomcat.util.IntrospectionUtils; |
59 |
import org.apache.tomcat.util.IntrospectionUtils; |
60 |
import org.apache.tomcat.util.net.JIoEndpoint.Worker; |
|
|
61 |
import org.apache.tomcat.util.net.SecureNioChannel.ApplicationBufferHandler; |
60 |
import org.apache.tomcat.util.net.SecureNioChannel.ApplicationBufferHandler; |
62 |
import org.apache.tomcat.util.net.jsse.NioX509KeyManager; |
61 |
import org.apache.tomcat.util.net.jsse.NioX509KeyManager; |
63 |
import org.apache.tomcat.util.res.StringManager; |
62 |
import org.apache.tomcat.util.res.StringManager; |
Lines 371-377
Link Here
|
371 |
} |
370 |
} |
372 |
} |
371 |
} |
373 |
} |
372 |
} |
374 |
public int getMaxThreads() { return maxThreads; } |
373 |
public int getMaxThreads() { |
|
|
374 |
if (running && getUseExecutor() && executor!=null) { |
375 |
if (executor instanceof ThreadPoolExecutor) { |
376 |
return ((ThreadPoolExecutor)executor).getMaximumPoolSize(); |
377 |
} else { |
378 |
return -1; |
379 |
} |
380 |
} else { |
381 |
return maxThreads; |
382 |
} |
383 |
} |
375 |
|
384 |
|
376 |
|
385 |
|
377 |
/** |
386 |
/** |