JETTY-1251 Replace then close selector for JVM bugs

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2117 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-07-14 03:49:37 +00:00
parent 50ad34c6ca
commit 1fe1ca1b35
2 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ jetty-7.2-SNAPSHOT
+ 319655 Reset HEAD status
+ JETTY-1247 synchronize recylcing of SSL NIO buffers
+ JETTY-1249 Apply max idle time to all connectors
+ JETTY-1251 Replace then close selector for JVM bugs
+ Added ignore to Logger interface
jetty-7.1.5.v20100705

View File

@ -556,8 +556,16 @@ public abstract class SelectorManager extends AbstractLifeCycle
else
addChange(channel,attachment);
}
_selector.close();
Selector old_selector=_selector;
_selector=new_selector;
try
{
old_selector.close();
}
catch(Exception e)
{
Log.ignore(e);
}
return;
}
}