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

This commit is contained in:
theli 2005-08-09 09:07:19 +00:00
parent 60eaf3dcde
commit b32e7c516c
3 changed files with 12 additions and 2 deletions

View File

@ -210,7 +210,12 @@ public final class httpc {
} }
// initialize it // 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; return newHttpc;
} }

View File

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

View File

@ -518,7 +518,10 @@ public final class serverCore extends serverAbstractThread implements serverThre
// trying to gracefull stop all still running sessions ... // trying to gracefull stop all still running sessions ...
serverCore.this.log.logInfo("Signaling shutdown to " + threadCount + " remaining session threads ..."); serverCore.this.log.logInfo("Signaling shutdown to " + threadCount + " remaining session threads ...");
for ( int currentThreadIdx = 0; currentThreadIdx < threadCount; currentThreadIdx++ ) { 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 // waiting a frew ms for the session objects to continue processing