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 toe102a008b6
which does not automatically close ServerChannels for IOExceptions Result: NIO ServerChannel doesn't close automatically for an IOException.
This commit is contained in:
parent
eed6791f8e
commit
002c99e751
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user