rename the max_packet_size transport parameter to max_udp_payload_size

This commit is contained in:
Marten Seemann 2020-03-21 11:07:04 +07:00
parent 2f2583beb0
commit d0b5da8aa1
8 changed files with 19 additions and 19 deletions

View file

@ -107,7 +107,7 @@ var _ = Describe("Transport Parameters", func() {
It("errors when the max_packet_size is too small", func() {
b := &bytes.Buffer{}
utils.WriteVarInt(b, uint64(maxPacketSizeParameterID))
utils.WriteVarInt(b, uint64(maxUDPPayloadSizeParameterID))
utils.WriteVarInt(b, uint64(utils.VarIntLen(1199)))
utils.WriteVarInt(b, 1199)
p := &TransportParameters{}