connectionErrorShouldStartShutdown() — netty Function Reference
Architecture documentation for the connectionErrorShouldStartShutdown() function in Http2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0535a1b5_6a58_fab1_87a9_99c99dc69ffb["connectionErrorShouldStartShutdown()"] e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"] 0535a1b5_6a58_fab1_87a9_99c99dc69ffb -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5 style 0535a1b5_6a58_fab1_87a9_99c99dc69ffb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 415–428
@Test
public void connectionErrorShouldStartShutdown() throws Exception {
handler = newHandler();
Http2Exception e = new Http2Exception(PROTOCOL_ERROR);
// There's no guarantee that lastStreamCreated in correct, as the error could have occurred during header
// processing before it was updated. Thus, it should _not_ be used for the GOAWAY.
// https://github.com/netty/netty/issues/10670
when(remote.lastStreamCreated()).thenReturn(STREAM_ID);
handler.exceptionCaught(ctx, e);
ArgumentCaptor<ByteBuf> captor = ArgumentCaptor.forClass(ByteBuf.class);
verify(frameWriter).writeGoAway(eq(ctx), eq(Integer.MAX_VALUE), eq(PROTOCOL_ERROR.code()),
captor.capture(), eq(promise));
captor.getValue().release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does connectionErrorShouldStartShutdown() do?
connectionErrorShouldStartShutdown() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is connectionErrorShouldStartShutdown() defined?
connectionErrorShouldStartShutdown() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 415.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free