a comparisment with the main release 0.57 had been made: this showed a stable network
This is an emergency operation to ensure availability of the sciencenet network.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4553 6c8d7289-2bf4-0310-a012-ef5d649a1542
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (entry null) from peer "+ohash+"\n\tURL properties: "+propStr);
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (entry null) from peer "+iam+"\n\tURL properties: "+propStr);
prop.put("delay","3600");
returnprop;
returnprop;
}
}
indexURLEntry.Componentscomp=entry.comp();
indexURLEntry.Componentscomp=entry.comp();
if(comp.url()==null){
if(comp.url()==null){
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (url null) for hash "+entry.hash()+" from peer "+ohash+"\n\tURL properties: "+propStr);
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (url null) for hash "+entry.hash()+" from peer "+iam+"\n\tURL properties: "+propStr);
prop.put("delay","3600");
returnprop;
returnprop;
}
}
// check if the entry is in our network domain
// check if the entry is in our network domain
if(!sb.acceptURL(comp.url())){
if(!switchboard.acceptURL(comp.url())){
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (url outside of our domain) for hash "+entry.hash()+" from peer "+ohash+"\n\tURL properties: "+propStr);
log.logWarning("crawlReceipt: RECEIVED wrong RECEIPT (url outside of our domain) for hash "+entry.hash()+" from peer "+iam+"\n\tURL properties: "+propStr);
//System.out.println("yacy: search received request = " + post.toString());
finalStringoseed=post.get("myseed","");// complete seed of the requesting peer
// final String youare = post.get("youare", ""); // seed hash of the target peer, used for testing network stability
finalStringkey=post.get("key","");// transmission key for response
finalStringquery=post.get("query","");// a string of word hashes that shall be searched and combined
finalStringexclude=post.get("exclude","");// a string of word hashes that shall not be within the search result
Stringurls=post.get("urls","");// a string of url hashes that are preselected for the search: no other may be returned
Stringabstracts=post.get("abstracts","");// a string of word hashes for abstracts that shall be generated, or 'auto' (for maxcount-word), or '' (for none)
// final String fwdep = post.get("fwdep", ""); // forward depth. if "0" then peer may NOT ask another peer for more results
// final String fwden = post.get("fwden", ""); // forward deny, a list of seed hashes. They may NOT be target of forward hopping
finalintcount=Math.min(100,post.getInt("count",10));// maximum number of wanted results
// if we are a robinson cluster, answer only if this client is known by our network definition
// if we are a robinson cluster, answer only if this client is known by our network definition
prop.put("links","");
returnprop;
prop.put("linkcount","0");
}
prop.put("references","");
returnprop;
finalStringquery=post.get("query","");// a string of word hashes that shall be searched and combined
finalStringabstracts=post.get("abstracts","");// a string of word hashes for abstracts that shall be generated, or 'auto' (for maxcount-word), or '' (for none)
// reject unknown peers: this does not appear fair, but anonymous senders are dangerous
// reject unknown peers: this does not appear fair, but anonymous senders are dangerous
sb.getLog().logFine("RankingTransmission: rejected unknown peer '"+ohash+"', current IP "+header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"unknown"));
returnprop;
}
oseed.setFlagDirectConnect(true);
oseed.setLastSeenUTC();
if(filename.indexOf("..")>=0){
// reject paths that contain '..' because they are dangerous
// reject paths that contain '..' because they are dangerous
sb.getLog().logFine("RankingTransmission: rejected wrong path '"+filename+"' from peer "+oseed.getName()+"/"+oseed.getPublicAddress()+", current IP "+header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"unknown"));
if(otherseed==null)sb.getLog().logFine("RankingTransmission: rejected unknown peer '"+otherpeer+"', current IP "+header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"unknown"));
if(filename.indexOf("..")>=0)sb.getLog().logFine("RankingTransmission: rejected wrong path '"+filename+"' from peer "+otherseed.getName()+"/"+otherseed.getPublicAddress()+", current IP "+header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"unknown"));