*) Trying to solve "java.net.BindException: Address already in use: JVM_Bind" Problem

by retrying Socket bind
   See: http://www.yacy-forum.de/viewtopic.php?p=6935

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@497 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 865b9490a2
commit 86305f051d

@ -402,7 +402,11 @@ public final class plasmaCrawlWorker extends Thread {
boolean retryCrawling = false;
String errorMsg = e.getMessage();
if (errorMsg != null) {
if (errorMsg.indexOf("Corrupt GZIP trailer") >= 0) {
if (e instanceof java.net.BindException) {
log.logWarning("BindException detected while trying to download content from '" + url.toString() +
"'. Retrying request.");
retryCrawling = true;
} else if (errorMsg.indexOf("Corrupt GZIP trailer") >= 0) {
log.logWarning("Problems detected while receiving gzip encoded content from '" + url.toString() +
"'. Retrying request without using gzip content encoding.");
retryCrawling = true;

Loading…
Cancel
Save