NIO ServerChannel shouldn't close because of Exception

Motivation:
e102a008b6 changed a conditional where previously the NIO ServerChannel would not be closed in the event of an exception.

Modifications:
- Restore the logic prior to e102a008b6 which does not automatically close ServerChannels for IOExceptions

Result:
NIO ServerChannel doesn't close automatically for an IOException.
This commit is contained in:
Scott Mitchell 2016-12-05 08:50:30 -08:00
parent eed6791f8e
commit 002c99e751

View File

@ -176,7 +176,7 @@ public abstract class AbstractNioMessageChannel extends AbstractNioChannel {
// accepting incoming connections. (e.g. too many open files) // accepting incoming connections. (e.g. too many open files)
return cause instanceof IOException && return cause instanceof IOException &&
!(cause instanceof PortUnreachableException) && !(cause instanceof PortUnreachableException) &&
this instanceof ServerChannel; !(this instanceof ServerChannel);
} }
/** /**