add exponential backoff to RTO calculation

fixes #112
This commit is contained in:
Lucas Clemente
2016-09-09 00:26:18 +02:00
parent 5d0399bfe3
commit 9b2127018d
3 changed files with 30 additions and 1 deletions

View File

@@ -59,5 +59,8 @@ const DefaultRetransmissionTime = 500 * time.Millisecond
// MinRetransmissionTime is the minimum RTO time
const MinRetransmissionTime = 200 * time.Millisecond
// MaxRetransmissionTime is the maximum RTO time
const MaxRetransmissionTime = 60 * time.Second
// ClientHelloMinimumSize is the minimum size the server expects an inchoate CHLO to have.
const ClientHelloMinimumSize = 1024