| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
| |
Introduce two new wire messages, LINKS and LINKS_REPLY (swarm::links).
A member answers with its links: for each peer, the transport, whether
it’s relayed, the RTT, and whether it’s dormant. It answers members
only, at most every 5 s. This bumps wire::VERSION to 7. Every build
answers, with or without the feature, so every node needs this patch
before the map shows anything beyond its own node.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
This prevents late hellos from resetting the session.
|
| |
|
|
|
| |
The Clock module is the system clock that every unix timestamp new goes
through. It comes with an offset that only tests can set.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
A source given up for not answering our sync messages could become the
source again straight away. Whoever asks first after the reset takes the
role, and that's often the same peer, which would then stall for another
delivery limit.
Now, a stalled source isn't chosen again for one more delivery_limit.
If it's the only candidate, catching up waits that long and then tries
it again. Before, a retry with that peer couldn't have helped any
sooner anyway: a source is only given up after a whole delivery limit
without a sync message, and that clock restarts when it is chosen again.
|
| |
|
|
| |
This enables upcoming lossy-links tests.
|
| | |
|
| |
|