implement the new format of the Retry packet

This commit is contained in:
Marten Seemann
2018-11-27 08:29:31 +07:00
parent c791145cba
commit 0d30e43c32
4 changed files with 23 additions and 32 deletions

View File

@@ -117,11 +117,7 @@ func (h *Header) parseLongHeader(b *bytes.Reader) error {
}
if h.Type == protocol.PacketTypeRetry {
odcilByte, err := b.ReadByte()
if err != nil {
return err
}
odcil := decodeSingleConnIDLen(odcilByte & 0xf)
odcil := decodeSingleConnIDLen(h.typeByte & 0xf)
h.OrigDestConnectionID, err = protocol.ReadConnectionID(b, odcil)
if err != nil {
return err