git ssb

3+

ev / decent



Commit 7848b9ebf65d7da001095458a722f4fbb7fa296e

tweak schedule some more

Ev Bogue committed on 2/1/2017, 3:12:34 PM
Parent: f773a1347705017696e0c401a04c923bf71ab47f

Files changed

plugins/gossip/schedule.jschanged
plugins/gossip/schedule.jsView
@@ -48,9 +48,10 @@
4848 }
4949
5050 function isInactive (e) {
5151 //return e.stateChange && e.duration.mean == 0
52- return e.stateChange && (!e.duration || e.duration.mean == 0)
52 + //return e.stateChange && (!e.duration || e.duration.mean == 0)
53 + return e.state !== 'connecting' && e.stateChange && (!e.duration || e.duration.mean == 0)
5354 }
5455
5556 function isLongterm (e) {
5657 //return e.ping && e.ping.rtt.mean > 0
@@ -126,15 +127,14 @@
126127
127128 //quota, groupMin, min, factor, max
128129
129130 connect(peers, ts, 'attempt', exports.isUnattempted, {
130- min: 0, quota: 10, factor: 0, max: 0, groupMin: 0,
131 + min: 0, quota: 1, factor: 0, max: 0, groupMin: 0,
131132 disable: !conf('global', true)
132133 })
133134
134135 connect(peers, ts, 'retry', exports.isInactive, {
135- min: 0,
136- quota: 3, factor: 5*60e3, max: 3*60*60e3, groupMin: 5*50e3
136 + min: 0, quota: 3, factor: 5*60e3, max: 3*60*60e3, groupMin: 5*50e3
137137 })
138138
139139 connect(peers, ts, 'legacy', exports.isLegacy, {
140140 quota: 3, factor: 5*min, max: 3*hour, groupMin: 5*min,
@@ -160,9 +160,9 @@
160160 })
161161 )
162162
163163 var int = setInterval(connections, 2e3)
164- if(int.unref) int.unref()
164 + //if(int.unref) int.unref()
165165
166166 connections()
167167 }
168168

Built with git-ssb-web