diff --git a/internal/wire/transport_parameters.go b/internal/wire/transport_parameters.go index 00f3348a..14724a7e 100644 --- a/internal/wire/transport_parameters.go +++ b/internal/wire/transport_parameters.go @@ -123,24 +123,18 @@ func (p *TransportParameters) unmarshal(r *bytes.Reader, sentBy protocol.Perspec } parameterIDs = append(parameterIDs, paramID) switch paramID { - case ackDelayExponentParameterID: - if err := p.readNumericTransportParameter(r, paramID, int(paramLen)); err != nil { - return err - } - case maxAckDelayParameterID: - if err := p.readNumericTransportParameter(r, paramID, int(paramLen)); err != nil { - return err - } - case initialMaxStreamDataBidiLocalParameterID, + case maxIdleTimeoutParameterID, + maxUDPPayloadSizeParameterID, + initialMaxDataParameterID, + initialMaxStreamDataBidiLocalParameterID, initialMaxStreamDataBidiRemoteParameterID, initialMaxStreamDataUniParameterID, - initialMaxDataParameterID, initialMaxStreamsBidiParameterID, initialMaxStreamsUniParameterID, - maxIdleTimeoutParameterID, - maxUDPPayloadSizeParameterID, + maxAckDelayParameterID, activeConnectionIDLimitParameterID, - maxDatagramFrameSizeParameterID: + maxDatagramFrameSizeParameterID, + ackDelayExponentParameterID: if err := p.readNumericTransportParameter(r, paramID, int(paramLen)); err != nil { return err }