Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 950:a778413aefc0
add SaneSelector
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Oct 2016 14:37:56 -0600 |
parents | e9088af3787f |
children | 669769bcdf5c |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java Tue Oct 11 23:18:13 2016 -0600 +++ b/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java Wed Oct 12 14:37:56 2016 -0600 @@ -502,7 +502,7 @@ if(changed) { doUpdateKey(); - _selectSet.wakeup(); + _selectSet.getSelector().update(); } } @@ -528,7 +528,7 @@ { try { - _key=((SelectableChannel)getChannel()).register(_selectSet.getSelector(),_interestOps,this); + _key = _selectSet.getSelector().register((SelectableChannel)getChannel(),_interestOps,this); } catch (Exception e) {