forked from quic-go/quic-go
implement a buffer pool for STREAM frames
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
s <09><><EFBFBD>
|
||||
|
||||
@@ -1 +1 @@
|
||||
Ą ´ŮÉ ÝťRß×›MvB›azźź
|
||||
d ´ŮÉ ÝťRß×›MvB›azźź
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD>74
|
||||
W
|
||||
@@ -1 +1 @@
|
||||
¦z‹˙˙˙˙˙˙˙˙
|
||||
<EFBFBD>fL<66>l<EFBFBD>Q5
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1,2 @@
|
||||
?イlコQ
|
||||
6
|
||||
u*.租マ<05>メ
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD><10><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
wK
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD>5<><35>M
|
||||
<EFBFBD><10><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
|
||||
<EFBFBD>H<>
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
M<13><EFBFBD>
|
||||
<EFBFBD><11><>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
/'
|
||||
Z•ňG&
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD>R<>
|
||||
•`Ο
|
||||
@@ -1 +1 @@
|
||||
P<14><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
o/
|
||||
<EFBFBD><14><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD><EFBFBD>g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD>5z<EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
îE
|
||||
k€<6B><E282AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -1 +1 @@
|
||||
<EFBFBD>L<>
|
||||
В•Ј.
|
||||
@@ -1 +1 @@
|
||||
|
||||
<EFBFBD><16><12>M
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
C
|
||||
w
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
<EFBFBD>
|
||||
|
||||
@@ -1 +1 @@
|
||||
ËFFÓÔ˙ćŐ™VQ__S‡ä”f™Ł®ÁJ|¶®»
|
||||
w˝[ŢmĽ!źvť)n§vDݸ#¨/ş
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1,2 @@
|
||||
<EFBFBD>
|
||||
}
|
||||
gʆ+«ÔKu!_²‚ˆ]2`ñÞ—‚ƒÔ š6ùl ”FãíM¦F©®‹O§´ü: ºúuí2z†¸°ÃšñÏÒ³µêyS:¿D<C2BF>,G<>2`u3<75>YÈÌð<>£ž’<>J¼¼±i9{·4çï
|
||||
@@ -1 +1 @@
|
||||
с<0C><>В_џџџџџџџџЮІшПF`ёо<D191><D0BE>
|
||||
¦
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -57,6 +57,7 @@ func Fuzz(data []byte) int {
|
||||
// We accept empty STREAM frames, but we don't write them.
|
||||
if sf, ok := f.(*wire.StreamFrame); ok {
|
||||
if sf.DataLen() == 0 {
|
||||
sf.PutBack()
|
||||
continue
|
||||
}
|
||||
}
|
||||
@@ -68,6 +69,9 @@ func Fuzz(data []byte) int {
|
||||
if f.Length(version) != protocol.ByteCount(frameLen) {
|
||||
panic(fmt.Sprintf("Inconsistent frame length for %#v: expected %d, got %d", f, frameLen, f.Length(version)))
|
||||
}
|
||||
if sf, ok := f.(*wire.StreamFrame); ok {
|
||||
sf.PutBack()
|
||||
}
|
||||
}
|
||||
if b.Len() > parsedLen {
|
||||
panic(fmt.Sprintf("Serialized length (%d) is longer than parsed length (%d)", b.Len(), parsedLen))
|
||||
|
||||
@@ -88,6 +88,12 @@ func getFrames() []wire.Frame {
|
||||
Data: getRandomData(50),
|
||||
FinBit: true,
|
||||
},
|
||||
&wire.StreamFrame{ // STREAM frame at non-zero offset, with data and FIN bit. Long enough to use the buffer.
|
||||
StreamID: protocol.StreamID(getRandomNumber()),
|
||||
Offset: protocol.ByteCount(getRandomNumber()),
|
||||
Data: getRandomData(2 * protocol.MinStreamFrameBufferSize),
|
||||
FinBit: true,
|
||||
},
|
||||
&wire.StreamFrame{ // STREAM frame at maximum offset, with FIN bit
|
||||
StreamID: protocol.StreamID(getRandomNumber()),
|
||||
Offset: protocol.MaxByteCount - 5,
|
||||
|
||||
Reference in New Issue
Block a user