Remove selector spinning optimization

This commit is contained in:
Trustin Lee 2012-05-25 13:59:31 -07:00
parent e2d69120bb
commit 778fbc36a9

View File

@ -47,11 +47,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()) {