Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/SelectorManager.java @ 962:94498d6daf5b
remove SelectChannelEndPoint._interestOps
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 13 Oct 2016 22:56:15 -0600 |
parents | 3cd4c706a61f |
children | 768414c16e10 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectorManager.java Thu Oct 13 22:03:24 2016 -0600 +++ b/src/org/eclipse/jetty/io/nio/SelectorManager.java Thu Oct 13 22:56:15 2016 -0600 @@ -211,7 +211,7 @@ endpoint.setConnection(newConnection(channel,endpoint)); key.attach(endpoint); - key.interestOps(SelectionKey.OP_READ); +// key.interestOps(SelectionKey.OP_READ); _selector.update(); //System.out.println("qqqqqqqqqqqqqqqqqqqqqqqqqqqqq b"); endpoint.schedule(); @@ -239,9 +239,6 @@ if (!key.isValid()) { key.cancel(); - SelectChannelEndPoint endpoint = (SelectChannelEndPoint)key.attachment(); - if (endpoint != null) - endpoint.doUpdateKey(); continue; } @@ -252,14 +249,12 @@ } catch (CancelledKeyException e) { - LOG.trace("",e); +// LOG.trace("",e); + LOG.warn("",e); } catch (Exception e) { - if (isRunning()) - LOG.warn("",e); - else - LOG.trace("",e); + LOG.warn("",e); } }