OptionMaxReconnectTime is the maximum value of the time between connection attempts, when an exponential backoff is used. If this value is zero, then exponential backoff is disabled, otherwise the value to wait between attempts is doubled until it hits this limit. This value is a time.Duration, with initial value 0. This option must be set before starting any dialers.
sock.Unlock() return nil case OptionMaxReconnectTime: sock.Lock() sock.reconnmax = value.(time.Duration)
defer sock.Unlock() return sock.reconntime, nil case OptionMaxReconnectTime: sock.Lock() defer sock.Unlock()
OptionMaxReconnectTime is referenced in 2 repositoriesgithub.com/go-mangos/mangos
- 2 references in core.go