Ping handling changes in protocol, removed from config here

This commit is contained in:
Jakob Borg
2015-09-21 10:14:27 +02:00
parent 24d2a93c0d
commit acba61babb
7 changed files with 58 additions and 163 deletions

View File

@@ -577,9 +577,6 @@ func syncthingMain() {
symlinks.Supported = false
}
protocol.PingTimeout = time.Duration(opts.PingTimeoutS) * time.Second
protocol.PingIdleTime = time.Duration(opts.PingIdleTimeS) * time.Second
if opts.MaxSendKbps > 0 {
writeRateLimit = ratelimit.NewBucketWithRate(float64(1000*opts.MaxSendKbps), int64(5*1000*opts.MaxSendKbps))
}