Print "An existing connection was forcibly closed by the remote host" only on debug level.
@@ -134,7 +134,7 @@ public interface Server {
String message = cause.getMessage();
if (message != null) {
String msg = message.toLowerCase();
- return msg.contains("reset by peer") || msg.contains("broken pipe");
+ return msg.contains("reset by peer") || msg.contains("broken pipe") || msg.contains("forcibly closed");
}
}
return (cause instanceof ClosedChannelException) || (cause instanceof EOFException);
