send packets with maximum IPv4 and IPv6 packet size

This commit is contained in:
Marten Seemann
2018-03-09 18:47:28 +07:00
parent ce0b33d2ff
commit 6ccc76a130
6 changed files with 66 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ func ParseGoawayFrame(r *bytes.Reader, _ protocol.VersionNumber) (*GoawayFrame,
return nil, err
}
if reasonPhraseLen > uint16(protocol.MaxPacketSize) {
if reasonPhraseLen > uint16(protocol.MaxReceivePacketSize) {
return nil, qerr.Error(qerr.InvalidGoawayData, "reason phrase too long")
}