Skip to content
Snippets Groups Projects
Commit 4d3116b0 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix(discovery): fix hanging if some peers don't respond

Previously the discovery algorithm would try to reach each known peer
sequentially requiring each consequent request to succeed until the next
one can be attempted. This would not work in some cases (see test in
previous commit).

So the new algorithm instead makes a single attempt to reach each peer
within a round, and if some failed they're retried in the next round of
requests. This allows overall discovery to succeed in cases when some
of the initial peers never respond.

Closes #54
parent 39498cb6
No related branches found
No related tags found
1 merge request!127fix(discovery): fix hanging if some peers don't respond
Pipeline #6248 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment