implement timeout-based retransmission (RTO)

fixes #56
This commit is contained in:
Lucas Clemente
2016-05-18 23:21:33 +02:00
parent 0a233a39b9
commit 4822def788
6 changed files with 170 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
package ackhandler
import (
"time"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/protocol"
)
@@ -17,6 +19,8 @@ type SentPacketHandler interface {
GetLargestObserved() protocol.PacketNumber
AllowsSending() bool
TimeToFirstRTO() time.Duration
}
// ReceivedPacketHandler handles ACKs needed to send for incoming packets