Example #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
}
Example #2
0
File: utp.go Project: godeep/utp
func (c *Conn) resendTimeout() time.Duration {
	l := c.latency()
	ret := jitter.Duration(3*l, l)
	return ret
}
Example #3
0
File: utp.go Project: postfix/utp-1
func (s *send) resendTimeout() time.Duration {
	return jitter.Duration(3*time.Second, time.Second)
}