Merge pull request #3878 from quic-go/single-ack-receiving

use a single ACK frame in the receive path
This commit is contained in:
Marten Seemann
2023-06-02 18:06:06 +03:00
committed by GitHub
5 changed files with 116 additions and 74 deletions

View File

@@ -11,7 +11,9 @@ import (
type SentPacketHandler interface {
// SentPacket may modify the packet
SentPacket(packet *Packet)
ReceivedAck(ackFrame *wire.AckFrame, encLevel protocol.EncryptionLevel, recvTime time.Time) (bool /* 1-RTT packet acked */, error)
// ReceivedAck processes an ACK frame.
// It does not store a copy of the frame.
ReceivedAck(f *wire.AckFrame, encLevel protocol.EncryptionLevel, recvTime time.Time) (bool /* 1-RTT packet acked */, error)
ReceivedBytes(protocol.ByteCount)
DropPackets(protocol.EncryptionLevel)
ResetForRetry() error