*) avoid exception throwing on already catched exception

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

@ -458,7 +458,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
String errorMsg = "Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage();
this.theLogger.logError(errorMsg,e);
} finally {
respond.flush();
try { respond.flush(); } catch (Exception e) {}
if (respond instanceof httpdByteCountOutputStream) ((httpdByteCountOutputStream)respond).finish();
this.currentConProp.put(httpd.CONNECTION_PROP_REQUEST_END,new Long(System.currentTimeMillis()));
@ -816,7 +816,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
httpd.sendRespondError(conProp,respond,4,503,"socket error: " + e.getMessage(),"socket error: " + e.getMessage(), e);
}
} finally {
respond.flush();
try { respond.flush(); } catch (Exception e) {}
}
return;
}

Loading…
Cancel
Save