testCloseFromServerWhileInActive() — netty Function Reference
Architecture documentation for the testCloseFromServerWhileInActive() function in QuicStreamChannelCloseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 21aaebfa_63dc_f13f_d3ab_fa9bb659e578["testCloseFromServerWhileInActive()"] f6302430_ab38_2061_da3d_4d6633f03714["QuicStreamChannelCloseTest"] 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 -->|defined in| f6302430_ab38_2061_da3d_4d6633f03714 563b5edc_ef0f_68a7_c184_01892e48e86c["testCloseFromServerWhileInActiveUnidirectional()"] 563b5edc_ef0f_68a7_c184_01892e48e86c -->|calls| 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 aca16394_7ad4_6eb8_419d_da46091a2aad["testCloseFromServerWhileInActiveBidirectional()"] aca16394_7ad4_6eb8_419d_da46091a2aad -->|calls| 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 407eef2e_d300_52c7_5b63_66b3b874e4f3["testHalfCloseFromServerWhileInActiveUnidirectional()"] 407eef2e_d300_52c7_5b63_66b3b874e4f3 -->|calls| 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 682516e1_dcf4_cbf0_73a3_c1f5773863c7["testHalfCloseFromServerWhileInActiveBidirectional()"] 682516e1_dcf4_cbf0_73a3_c1f5773863c7 -->|calls| 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 bb517bde_3625_659c_2f19_e0e8b5f99b16["StreamCreationHandler()"] 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 -->|calls| bb517bde_3625_659c_2f19_e0e8b5f99b16 style 21aaebfa_63dc_f13f_d3ab_fa9bb659e578 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java lines 65–103
private static void testCloseFromServerWhileInActive(Executor executor, QuicStreamType type,
boolean halfClose) throws Throwable {
Channel server = null;
Channel channel = null;
try {
final Promise<Channel> streamPromise = ImmediateEventExecutor.INSTANCE.newPromise();
QuicChannelValidationHandler serverHandler = new StreamCreationHandler(type, halfClose, streamPromise);
server = QuicTestUtils.newServer(executor, serverHandler,
new ChannelInboundHandlerAdapter());
channel = QuicTestUtils.newClient(executor);
QuicChannelValidationHandler clientHandler = new QuicChannelValidationHandler();
QuicChannel quicChannel = QuicTestUtils.newQuicChannelBootstrap(channel)
.handler(clientHandler)
.streamHandler(new StreamHandler())
.remoteAddress(server.localAddress())
.connect()
.get();
Channel streamChannel = streamPromise.get();
// Wait for the steam to close. It needs to happen before the 5-second connection idle timeout.
streamChannel.closeFuture().get(3000, TimeUnit.MILLISECONDS);
streamChannel.parent().close();
// Wait till the client was closed
quicChannel.closeFuture().sync();
serverHandler.assertState();
clientHandler.assertState();
} finally {
QuicTestUtils.closeIfNotNull(channel);
QuicTestUtils.closeIfNotNull(server);
shutdown(executor);
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testCloseFromServerWhileInActive() do?
testCloseFromServerWhileInActive() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java.
Where is testCloseFromServerWhileInActive() defined?
testCloseFromServerWhileInActive() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java at line 65.
What does testCloseFromServerWhileInActive() call?
testCloseFromServerWhileInActive() calls 1 function(s): StreamCreationHandler.
What calls testCloseFromServerWhileInActive()?
testCloseFromServerWhileInActive() is called by 4 function(s): testCloseFromServerWhileInActiveBidirectional, testCloseFromServerWhileInActiveUnidirectional, testHalfCloseFromServerWhileInActiveBidirectional, testHalfCloseFromServerWhileInActiveUnidirectional.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free