fixed a time-out problem in the default servlet which is also a logging

problem because the error log showed the wrong reason (file not found)
instead the actual reason (time-out).
pull/1/head
Michael Peter Christen 11 years ago
parent 466d90ad42
commit 734778c0c8

@ -953,10 +953,11 @@ public class YaCyDefaultServlet extends HttpServlet {
try { try {
dispatcher.include(request, response); dispatcher.include(request, response);
} catch (IOException ex) { } catch (IOException ex) {
ConcurrentLog.warn("FILEHANDLER", "YaCyDefaultServlet: file not found " + path); if (path.indexOf("yacysearch") < 0) ConcurrentLog.warn("FILEHANDLER", "YaCyDefaultServlet: parseSSI dispatcher problem - " + ex.getMessage() + ": " + path);
// this is probably a time-out; it may occur during search requests; for search requests we consider that normal
} }
} else { } else {
ConcurrentLog.warn("FILEHANDLER", "YaCyDefaultServlet: closing quote missing " + buffer.toString(p, end - p) + " in " + request.getPathInfo()); ConcurrentLog.warn("FILEHANDLER", "YaCyDefaultServlet: parseSSI closing quote missing " + buffer.toString(p, end - p) + " in " + request.getPathInfo());
} }
offset = end + 3; // after "-->" offset = end + 3; // after "-->"
p = buffer.indexOf(inctxt, offset); p = buffer.indexOf(inctxt, offset);

Loading…
Cancel
Save