remove bug check for increasing packet number in SentPacketHandler

This commit is contained in:
Marten Seemann
2017-12-04 10:58:53 +07:00
parent 6695983a43
commit cc3bfc1fa7
2 changed files with 0 additions and 29 deletions

View File

@@ -99,10 +99,6 @@ func (h *sentPacketHandler) SetHandshakeComplete() {
}
func (h *sentPacketHandler) SentPacket(packet *Packet) error {
if packet.PacketNumber <= h.lastSentPacketNumber {
return errors.New("Already sent a packet with a higher packet number")
}
if protocol.PacketNumber(len(h.retransmissionQueue)+h.packetHistory.Len()+1) > protocol.MaxTrackedSentPackets {
return errors.New("Too many outstanding non-acked and non-retransmitted packets")
}