Updated logic to calculate the minimum number of threads.

This commit is contained in:
Simone Bordet 2017-09-08 09:57:15 +02:00
parent 930f5e0b09
commit 5d8c605d96
1 changed files with 1 additions and 5 deletions

View File

@ -402,11 +402,7 @@ public class Server extends HandlerWrapper implements Attributes
acceptors += abstractConnector.getAcceptors();
if (connector instanceof ServerConnector)
{
// The SelectorManager uses 2 threads for each selector,
// one for the normal and one for the low priority strategies.
selectors += 2 * ((ServerConnector)connector).getSelectorManager().getSelectorCount();
}
selectors += ((ServerConnector)connector).getSelectorManager().getSelectorCount();
}
}