forked from quic-go/quic-go
rename MaxReceivePacketSize to MaxPacketBufferSize
We use the same buffer size for sending and receiving packets.
This commit is contained in:
@@ -191,7 +191,7 @@ func (s *sendStream) canBufferStreamFrame() bool {
|
||||
if s.nextFrame != nil {
|
||||
l = s.nextFrame.DataLen()
|
||||
}
|
||||
return l+protocol.ByteCount(len(s.dataForWriting)) <= protocol.MaxReceivePacketSize
|
||||
return l+protocol.ByteCount(len(s.dataForWriting)) <= protocol.MaxPacketBufferSize
|
||||
}
|
||||
|
||||
// popStreamFrame returns the next STREAM frame that is supposed to be sent on this stream
|
||||
|
||||
Reference in New Issue
Block a user