ssbc / ssb-gossip

Schedule connections randomly with a peerlist constructed from config, multicast UDP announcements, feed announcements, and API-calls
MIT License
10 stars 3 forks source link

Bump scheule delay to avoid reconnecting too often #3

Closed arj03 closed 5 years ago

arj03 commented 5 years ago

When using ssb-friend-pub you only get a very small number of peers to connect to. In this setting it is much more likely that you don't have "enough" peers, meaning that ssb-gossip will try as fast as it can to reconnect to the same peers over and over. Before the delay was between 10 and 100ms, which seems really low. With this patch the delay is bumped to 100ms to 1000ms instead which I think it more reasonable.

dominictarr commented 5 years ago

yes I think this is fine, :+1: