serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() — netty Function Reference
Architecture documentation for the serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() function in Http2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cd250a00_a859_dca2_e74e_bd24b53d5105["serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException()"] e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"] cd250a00_a859_dca2_e74e_bd24b53d5105 -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5 style cd250a00_a859_dca2_e74e_bd24b53d5105 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 361–374
@Test
public void serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException()
throws Exception {
when(connection.isServer()).thenReturn(true);
handler = newHandler();
// Create a connection preface followed by a bunch of zeros (i.e. not a settings frame).
ByteBuf buf = Unpooled.buffer().writeBytes(connectionPrefaceBuf()).writeZero(10);
handler.channelRead(ctx, buf);
ArgumentCaptor<ByteBuf> captor = ArgumentCaptor.forClass(ByteBuf.class);
verify(frameWriter, atLeastOnce()).writeGoAway(eq(ctx), eq(Integer.MAX_VALUE), eq(PROTOCOL_ERROR.code()),
captor.capture(), eq(promise));
assertEquals(0, captor.getValue().refCnt());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() do?
serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() defined?
serverReceivingClientPrefaceStringFollowedByNonSettingsShouldHandleException() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 361.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free