From 9df6e19204305b71efce67498d7c4eeda03eb3f6 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Fri, 15 Mar 2024 17:50:18 -0500 Subject: [PATCH] Ignored EofException response failure in MetricsHttpChannelListener --- .../textsecuregcm/metrics/MetricsHttpChannelListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/metrics/MetricsHttpChannelListener.java b/service/src/main/java/org/whispersystems/textsecuregcm/metrics/MetricsHttpChannelListener.java index 13ded90b1..ee5717b02 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/metrics/MetricsHttpChannelListener.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/metrics/MetricsHttpChannelListener.java @@ -112,6 +112,12 @@ public void onRequestFailure(final Request request, final Throwable failure) { @Override public void onResponseFailure(Request request, Throwable failure) { + + if (failure instanceof org.eclipse.jetty.io.EofException) { + // the client disconnected early + return; + } + final RequestInfo requestInfo = getRequestInfo(request); logger.warn("Response failure: {} {} ({}) [{}] ",