From 9e8e20c32278694ef9260c030e15595dd4847963 Mon Sep 17 00:00:00 2001 From: baka Date: Wed, 21 Jun 2017 15:19:16 +0000 Subject: [PATCH] Possible fix for the canceled download log spam problem. The error with AJP messages comes up when a user closes connection on an ongoing GET request. Since this is not a problem for us (no modifications take place), we can just accept that it happened an go on with our lifes. git-svn-id: https://svn.libreccm.org/ccm/trunk@4794 8810af33-2d31-482b-a856-94f89814c4df --- ccm-core/src/com/arsdigita/web/BaseServlet.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ccm-core/src/com/arsdigita/web/BaseServlet.java b/ccm-core/src/com/arsdigita/web/BaseServlet.java index 38b535d85..e64a4e0d3 100755 --- a/ccm-core/src/com/arsdigita/web/BaseServlet.java +++ b/ccm-core/src/com/arsdigita/web/BaseServlet.java @@ -282,8 +282,19 @@ public abstract class BaseServlet extends HttpServlet { " with servlet " + getServletConfig().getServletName() + " (class: " + getClass().getName() + ")"); } - - internalService(sreq, sresp); + try { + internalService(sreq, sresp); + } catch(IOException e) { + if (e.getMessage().contains("Failed to send AJP message")) { + if (s_log.isDebugEnabled()) { + s_log.info("FAILED: Serving GET request path " + sreq.getPathInfo() + + " with servlet " + getServletConfig().getServletName() + + " (class: " + getClass().getName() + ") CAUSE: Failed to send AJP message"); + } + } else { + throw e; + } + } } /**