forked from I2P_Developers/i2p.i2p
If we dont know any good floodfills, try to connect to one
This commit is contained in:
@@ -8,6 +8,12 @@ import net.i2p.util.Log;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Ask the peer who sent us the DSRM for the RouterInfos.
|
* Ask the peer who sent us the DSRM for the RouterInfos.
|
||||||
|
*
|
||||||
|
* If we have the routerInfo already, try to refetch it from that router itself,
|
||||||
|
* if we aren't already connected to that router,
|
||||||
|
* which will help us establish that router as a good floodfill and speed our
|
||||||
|
* integration into the network.
|
||||||
|
*
|
||||||
* A simple version of SearchReplyJob in SearchJob.java.
|
* A simple version of SearchReplyJob in SearchJob.java.
|
||||||
* Skip the profile updates - this should be rare.
|
* Skip the profile updates - this should be rare.
|
||||||
*
|
*
|
||||||
@@ -28,6 +34,8 @@ class SingleLookupJob extends JobImpl {
|
|||||||
continue;
|
continue;
|
||||||
if (getContext().netDb().lookupRouterInfoLocally(peer) == null)
|
if (getContext().netDb().lookupRouterInfoLocally(peer) == null)
|
||||||
getContext().jobQueue().addJob(new SingleSearchJob(getContext(), peer, from));
|
getContext().jobQueue().addJob(new SingleSearchJob(getContext(), peer, from));
|
||||||
|
else if (!getContext().commSystem().isEstablished(peer))
|
||||||
|
getContext().jobQueue().addJob(new SingleSearchJob(getContext(), peer, peer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public String getName() { return "NetDb process DSRM"; }
|
public String getName() { return "NetDb process DSRM"; }
|
||||||
|
Reference in New Issue
Block a user