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
master
baka 2017-06-21 15:19:16 +00:00
parent e4f0ea268b
commit 9e8e20c322
1 changed files with 13 additions and 2 deletions

View File

@ -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;
}
}
}
/**