Add org.eclipse.jetty.io.EofException to expected measureSendMessageErrors

This commit is contained in:
Chris Eager 2024-03-28 12:39:41 -05:00 committed by Chris Eager
parent 831c9ff5bf
commit fcc77052a6
1 changed files with 2 additions and 0 deletions

View File

@ -397,6 +397,8 @@ public class WebSocketConnection implements MessageAvailabilityListener, Displac
errorType = "closedChannel";
} else if (e == WebSocketResourceProvider.CONNECTION_CLOSED_EXCEPTION) {
errorType = "connectionClosed";
} else if (e instanceof org.eclipse.jetty.io.EofException) {
errorType = "connectionEof";
} else {
logger.warn(terminal ? "Send message failure terminated stream" : "Send message failed", e);
errorType = "other";