Fixed issue: NETTY-25 (Unnecessarily logged exception in the blocking I/O server socket)
* Suppressed the expected exception logging
This commit is contained in:
parent
abdefea703
commit
b4c6d82be7
@ -216,6 +216,12 @@ class OioServerSocketPipelineSink extends AbstractChannelSink {
|
|||||||
} catch (SocketTimeoutException e) {
|
} catch (SocketTimeoutException e) {
|
||||||
// Thrown every second to stop when requested.
|
// Thrown every second to stop when requested.
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
// Don't log the exception if the server socket was closed
|
||||||
|
// by a user.
|
||||||
|
if (!channel.isBound()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Failed to accept a connection.", e);
|
"Failed to accept a connection.", e);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user