sendGoAway() — netty Function Reference
Architecture documentation for the sendGoAway() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 33bebf89_dcc2_a260_076b_e15cedd343e8["sendGoAway()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 33bebf89_dcc2_a260_076b_e15cedd343e8 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c style 33bebf89_dcc2_a260_076b_e15cedd343e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 340–361
@Test
public void sendGoAway() throws Exception {
frameInboundWriter.writeInboundHeaders(3, request, 31, false);
Http2Stream stream = frameCodec.connection().stream(3);
assertNotNull(stream);
assertEquals(State.OPEN, stream.state());
ByteBuf debugData = bb("debug");
ByteBuf expected = debugData.copy();
Http2GoAwayFrame goAwayFrame = new DefaultHttp2GoAwayFrame(NO_ERROR.code(),
debugData.retainedDuplicate());
goAwayFrame.setExtraStreamIds(2);
channel.writeOutbound(goAwayFrame);
verify(frameWriter).writeGoAway(eqFrameCodecCtx(), eq(7),
eq(NO_ERROR.code()), eq(expected), anyChannelPromise());
assertEquals(State.OPEN, stream.state());
assertTrue(channel.isActive());
expected.release();
debugData.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sendGoAway() do?
sendGoAway() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is sendGoAway() defined?
sendGoAway() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 340.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free