forked from quic-go/quic-go
fix splitting of STREAM frames for IETF QUIC
Move splitting of STREAM frames from the quic package to the wire package.
This commit is contained in:
@@ -50,8 +50,8 @@ func (f *MaxStreamDataFrame) Write(b *bytes.Buffer, version protocol.VersionNumb
|
||||
return nil
|
||||
}
|
||||
|
||||
// MinLength of a written frame
|
||||
func (f *MaxStreamDataFrame) MinLength(version protocol.VersionNumber) protocol.ByteCount {
|
||||
// Length of a written frame
|
||||
func (f *MaxStreamDataFrame) Length(version protocol.VersionNumber) protocol.ByteCount {
|
||||
// writing this frame would result in a gQUIC WINDOW_UPDATE being written, which has a different length
|
||||
if !version.UsesIETFFrameFormat() {
|
||||
return 1 + 4 + 8
|
||||
|
||||
Reference in New Issue
Block a user