*) IfsL: Suppressing stacktraces on further proxy errors

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

@ -1215,7 +1215,12 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
this.forceConnectionClose();
} else if ((exceptionMsg != null) && (exceptionMsg.indexOf("Connection reset")>= 0)) {
errorMessage = "Connection reset";
} else if ((exceptionMsg != null) && (exceptionMsg.indexOf("unknown host")>=0)) {
} else if ((exceptionMsg != null) &&
(
(exceptionMsg.indexOf("unknown host")>=0) ||
(exceptionMsg.indexOf("socket write error")>=0) ||
(exceptionMsg.indexOf("Read timed out") >= 0)
)) {
errorMessage = exceptionMsg;
} else if ((remote != null)&&(remote.isClosed())) {
// TODO: query for broken pipe

Loading…
Cancel
Save