Fixed number of worker threads for endpoint

This commit is contained in:
nathan 2019-01-17 15:58:13 +01:00
parent 52197975cd
commit e6d8666862

View File

@ -75,7 +75,7 @@ class Shutdownable {
* The number of threads used for the worker threads.
*/
@Property
public static int WORKER_THREAD_POOL_SIZE = Math.min(Runtime.getRuntime().availableProcessors() / 2, 1);
public static int WORKER_THREAD_POOL_SIZE = Math.max(Runtime.getRuntime().availableProcessors() / 2, 1);
/**
* The amount of time in milli-seconds to wait for this endpoint to close all {@link Channel}s and shutdown gracefully.