git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@507 6c8d7289-2bf4-0310-a012-ef5d649a1542

pull/1/head
theli 20 years ago
parent 60eaf3dcde
commit b32e7c516c

@ -210,7 +210,12 @@ public final class httpc {
}
// initialize it
newHttpc.init(server,port,timeout,ssl,remoteProxyHost, remoteProxyPort);
try {
newHttpc.init(server,port,timeout,ssl,remoteProxyHost, remoteProxyPort);
} catch (IOException e) {
try{ httpc.theHttpcPool.returnObject(newHttpc); } catch (Exception e1) {}
throw e;
}
return newHttpc;
}

@ -414,6 +414,8 @@ public final class plasmaCrawlWorker extends Thread {
log.logWarning("Read timeout while receiving content from '" + url.toString() +
"'. Retrying request.");
retryCrawling = true;
} else if (errorMsg.indexOf("Connection refused") >= 0) {
log.logError("CRAWLER LOADER ERROR2 with URL=" + url.toString() + ": Connection refused");
}
if (retryCrawling) {

@ -518,7 +518,10 @@ public final class serverCore extends serverAbstractThread implements serverThre
// trying to gracefull stop all still running sessions ...
serverCore.this.log.logInfo("Signaling shutdown to " + threadCount + " remaining session threads ...");
for ( int currentThreadIdx = 0; currentThreadIdx < threadCount; currentThreadIdx++ ) {
((Session)threadList[currentThreadIdx]).setStopped(true);
Thread currentThread = threadList[currentThreadIdx];
if (currentThread.isAlive()) {
((Session)currentThread).setStopped(true);
}
}
// waiting a frew ms for the session objects to continue processing

Loading…
Cancel
Save