*) httpd.java: improved errorhandling

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@333 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 9d8c66fb5e
commit 6e97f70549

@ -520,13 +520,14 @@ public final class httpd implements serverHandler {
if (errorMsg != null) {
if (errorMsg.startsWith("Socket closed")) {
this.log.logInfo("httpd shutdown detected ...");
}
else if ((errorMsg.startsWith("Broken pipe") || errorMsg.startsWith("Connection reset"))) {
} else if ((errorMsg.startsWith("Broken pipe") || errorMsg.startsWith("Connection reset"))) {
// client closed the connection, so we just end silently
this.log.logInfo("Client unexpectedly closed connection");
} else {
this.log.logError("Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(),e);
}
} else {
this.log.logError("Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(),e);
this.log.logError("Unexpected Error. " + e.getClass().getName(),e);
}
}
}

Loading…
Cancel
Save