set the packet type for handshake retransmissions

This commit is contained in:
Marten Seemann
2018-03-04 22:33:10 +07:00
parent ba00cb9175
commit 8fc573c895
2 changed files with 3 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ func (p *packetPacker) packHandshakeRetransmission(packet *ackhandler.Packet) (*
p.hasSentPacket = false
}
header := p.getHeader(packet.EncryptionLevel)
header.Type = packet.PacketType
var frames []wire.Frame
if p.version.UsesStopWaitingFrames() { // for gQUIC: pack a STOP_WAITING first
if p.stopWaiting == nil {