fix the exponential backoff when sending handshake retransmissions

This commit is contained in:
Marten Seemann
2017-10-30 15:44:52 +07:00
parent 515babb4bd
commit f412faad7b
2 changed files with 6 additions and 1 deletions

View File

@@ -308,6 +308,7 @@ func (h *sentPacketHandler) OnAlarm() {
// TODO(#497): TLP
if !h.handshakeComplete {
h.queueHandshakePacketsForRetransmission()
h.handshakeCount++
} else if !h.lossTime.IsZero() {
// Early retransmit or time loss detection
h.detectLostPackets()