Remove Selector spinning optimization
- Needs more experiments
This commit is contained in:
parent
ae5127ac6e
commit
06a6b9b3a9
@ -49,11 +49,6 @@ final class SelectorUtil {
|
||||
|
||||
static void select(Selector selector) throws IOException {
|
||||
try {
|
||||
for (int i = 0; i < 32; i ++) {
|
||||
if (selector.selectNow() > 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
selector.select(10);
|
||||
} catch (CancelledKeyException e) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user