Merge pull request #1228 from lucas-clemente/sent-packet-handler-packet-number-len

calculate the packet number length in the sent packet handler
This commit is contained in:
Marten Seemann
2018-03-08 00:59:09 +07:00
committed by GitHub
8 changed files with 34 additions and 37 deletions

View File

@@ -349,8 +349,8 @@ func (h *sentPacketHandler) DequeuePacketForRetransmission() *Packet {
return packet
}
func (h *sentPacketHandler) GetLeastUnacked() protocol.PacketNumber {
return h.lowestUnacked()
func (h *sentPacketHandler) GetPacketNumberLen(p protocol.PacketNumber) protocol.PacketNumberLen {
return protocol.GetPacketNumberLengthForHeader(p, h.lowestUnacked())
}
func (h *sentPacketHandler) GetStopWaitingFrame(force bool) *wire.StopWaitingFrame {