357318: cancel key before close as speculative work around for JVM bug

This commit is contained in:
Greg Wilkins 2012-03-02 08:07:16 +11:00
parent 1e6b5d4123
commit 79ce93ba94
1 changed files with 10 additions and 0 deletions

View File

@ -685,6 +685,16 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
@Override
public void close() throws IOException
{
try
{
if (_key!=null)
_key.cancel();
}
catch (Throwable e)
{
LOG.ignore(e);
}
try
{
super.close();