Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) httpd.java: improved errorhandling

theli6e97f705498a
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index 0b637c993..d7f509ce0 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -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);
}
}
}