unknownFrameOnMissingStreamFirstPacket() — netty Function Reference
Architecture documentation for the unknownFrameOnMissingStreamFirstPacket() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2e715c26_9ec6_b64c_c123_9b024f8d6a27["unknownFrameOnMissingStreamFirstPacket()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 2e715c26_9ec6_b64c_c123_9b024f8d6a27 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c 868f866c_1fcb_c067_1110_d326c0e4d94b["setUp()"] 2e715c26_9ec6_b64c_c123_9b024f8d6a27 -->|calls| 868f866c_1fcb_c067_1110_d326c0e4d94b style 2e715c26_9ec6_b64c_c123_9b024f8d6a27 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 426–461
@Test
public void unknownFrameOnMissingStreamFirstPacket() throws Exception {
setUp(Http2FrameCodecBuilder.forClient(), new Http2Settings(), false);
// SETTINGS and UNKNOWN must come in on the same packet to trigger the bug
channel.pipeline().addFirst("combine", new ChannelInboundHandlerAdapter() {
CompositeByteBuf accumulate;
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
if (accumulate == null) {
accumulate = ctx.alloc().compositeBuffer();
}
accumulate.addComponent(true, (ByteBuf) msg);
}
@Override
public void handlerRemoved(ChannelHandlerContext ctx) {
if (accumulate != null) {
ctx.fireChannelRead(accumulate);
ctx.fireChannelReadComplete();
}
}
});
frameInboundWriter.writeInboundSettings(new Http2Settings());
ByteBuf debugData = bb("debug");
frameInboundWriter.writeInboundFrame((byte) 0xb, 101, new Http2Flags(), debugData);
channel.pipeline().remove("combine");
channel.flushInbound();
assertEquals(0, debugData.refCnt());
assertTrue(channel.isActive());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does unknownFrameOnMissingStreamFirstPacket() do?
unknownFrameOnMissingStreamFirstPacket() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is unknownFrameOnMissingStreamFirstPacket() defined?
unknownFrameOnMissingStreamFirstPacket() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 426.
What does unknownFrameOnMissingStreamFirstPacket() call?
unknownFrameOnMissingStreamFirstPacket() calls 1 function(s): setUp.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free