summaryrefslogtreecommitdiffstats
path: root/src/swarm/peer.rs
Commit message (Collapse)AuthorAgeFilesLines
* perform handshake in one round triptv31 hours1-62/+52
|
* drop pre-membership sync messagestv31 hours1-23/+4
| | | | | The handshake resets the session anyway, and the sender's reply timeout resends what still matters.
* bump number of heads in keepalive messagestv31 hours1-0/+1
| | | | | Instead of arbitrarily limiting the number to 16, allow filling keepalive messages as long as they don't cause mycelium to chunk it.
* probe sync source during catch-uptv31 hours1-1/+7
| | | | This allows changing sources without the fixed 30 s stall duration.
* enrich keepalive contenttv31 hours1-26/+39
| | | | | | | Add ready and syncs_with_you flags as well as actual heads, so the peer - ready: same meaning as in the sync message - syncs_with_you: sender counts recipient as member and in same epoch - heads: allows to tell who's behind or if both sides have changes
* record the cause that started a sync sessiontv33 hours1-5/+5
|
* merge sync_reset_at and epoch_unannounced into openingtv33 hours1-3/+2
|
* introduce sync sessiontv33 hours1-1/+1
| | | | SyncSession holds all fields that get reset by reset_sync()
* merge membership and authenticate into standingtv34 hours1-14/+10
|
* pick pair leader by hash instead of key ordertv40 hours1-1/+1
|
* ping only from one sidetv40 hours1-1/+2
|
* don't resend sync messages to up-to-date peerstv2 days1-6/+15
| | | | | | | | | | | When an sync messages arrives and automerge has nothing to say about it, then no reply is generated. With c9279e4 it was assumed that every sync message gets an answer, so missing replies caused unnecessary resends. Now a reply is only awaited if the peer's last reported heads differ from ours. If the peer's heads become equal through a third peer without replying, the waiting will also abort if a ping or pong showss the same heads digest on both sides.
* introduce pre-shared swarm keytv2 days1-0/+85
|
* rename cluster to swarm everywhere!tv4 days1-33/+30
|
* resend sync messages that haven't been repliedtv4 days1-2/+10
|
* rename compaction to remaketv4 days1-1/+1
|
* reorganize all the modulestv4 days1-0/+675