From 778fbc36a9dd2b3512484b8d069ae6228227beab Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 25 May 2012 13:59:31 -0700 Subject: [PATCH] Remove selector spinning optimization --- .../main/java/io/netty/channel/socket/nio/SelectorUtil.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/socket/nio/SelectorUtil.java b/transport/src/main/java/io/netty/channel/socket/nio/SelectorUtil.java index 1b97a0dc65..296ea28c2b 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/SelectorUtil.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/SelectorUtil.java @@ -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()) {