Remove Selector spinning optimization

- Needs more experiments
This commit is contained in:
Trustin Lee 2012-05-25 09:25:10 -07:00
parent ae5127ac6e
commit 06a6b9b3a9

View File

@ -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()) {