Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- don't spam log because of some old URLs

karlchenofhellfdb45378fbaf
diff --git a/htroot/yacy/transferURL.java b/htroot/yacy/transferURL.java
index e39564fdd..b56a0a46c 100644
--- a/htroot/yacy/transferURL.java
+++ b/htroot/yacy/transferURL.java
@@ -115,11 +115,17 @@ public final class transferURL {
// check if entry is well-formed
indexURLEntry.Components comp = lEntry.comp();
- if ((comp.url() == null) || (lEntry.freshdate().getTime() <= freshdate)) {
+ if (comp.url() == null) {
yacyCore.log.logWarning("transferURL: received invalid URL from peer " + otherPeerName + "\n\tURL Property: " + urls);
continue;
}
+ // check whether entry is too old
+ if (lEntry.freshdate().getTime() <= freshdate) {
+ yacyCore.log.logFine("transerURL: received too old URL from peer " + otherPeerName + ": " + lEntry.freshdate());
+ continue;
+ }
+
// check if the entry is blacklisted
if ((blockBlacklist) && (plasmaSwitchboard.urlBlacklist.isListed(plasmaURLPattern.BLACKLIST_DHT, lEntry.hash(), comp.url()))) {
int deleted = sb.wordIndex.tryRemoveURLs(lEntry.hash());