Exclude wrapped EofException in MetricsHttpEventHandler#onResponseFailure

This commit is contained in:
Chris Eager authored and Chris Eager committed 2026-10-15 18:03:00 -04:00
1 parent 773081ce36
commit 7238d00f4d
1 file changed
+2 -1
@@ -122,7 +122,8 @@ public class MetricsHttpEventHandler extends EventsHandler {
private void onResponseFailure(Request request, int status, Throwable failure) {
if (failure instanceof org.eclipse.jetty.io.EofException) {
if (failure instanceof org.eclipse.jetty.io.EofException
|| (failure instanceof java.io.IOException && failure.getCause() instanceof org.eclipse.jetty.io.EofException)) {
// the client disconnected early
return;
}