Exemple #1
0
func (c *Conn) resendTimeout() time.Duration {
	l := c.latency()
	if l < 10*time.Millisecond {
		l = 10 * time.Millisecond
	}
	ret := jitter.Duration(3*l, l)
	// log.Print(ret)
	return ret
}
Exemple #2
0
func (c *Conn) resendTimeout() time.Duration {
	l := c.latency()
	ret := jitter.Duration(3*l, l)
	return ret
}
Exemple #3
0
func (s *send) resendTimeout() time.Duration {
	return jitter.Duration(3*time.Second, time.Second)
}