implement loss detection for handshake packets

This commit is contained in:
Marten Seemann
2017-09-30 22:44:26 +07:00
parent e20fdf43ef
commit daa8d08fba
6 changed files with 99 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ import (
)
const (
// Note: This constant is also defined in the ackhandler package.
initialRTTus = 100 * 1000
rttAlpha float32 = 0.125
oneMinusAlpha float32 = (1 - rttAlpha)