Now that we are generating the set of possible peers before attempting to
connect. The retry_on_error directive is no longer repeatedly cycling
through the peer selecting process failing on one peer until that peer
works.
The maybe-direct case seems to have been depending on this behaviour to
locate alternative peers before going DIRECT. The attached patch seeks
to make the maybe-direct case produce a list of all available parents
with the specific algorithm choice first.
if (Config.onoff.prefer_direct)
peerGetSomeDirect(ps);
- if (request->flags.hierarchical || !Config.onoff.nonhierarchical_direct)
+ if (request->flags.hierarchical || !Config.onoff.nonhierarchical_direct) {
peerGetSomeParent(ps);
+ peerGetAllParents(ps);
+ }
if (!Config.onoff.prefer_direct)
peerGetSomeDirect(ps);