Home / Function/ testCloseFromClientWhileInActive() — netty Function Reference

testCloseFromClientWhileInActive() — netty Function Reference

Architecture documentation for the testCloseFromClientWhileInActive() function in QuicStreamChannelCloseTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  31478937_9683_64c2_3ddf_507bb9334135["testCloseFromClientWhileInActive()"]
  f6302430_ab38_2061_da3d_4d6633f03714["QuicStreamChannelCloseTest"]
  31478937_9683_64c2_3ddf_507bb9334135 -->|defined in| f6302430_ab38_2061_da3d_4d6633f03714
  96feb991_3c6a_01d9_060e_25a24b3ebf12["testCloseFromClientWhileInActiveUnidirectional()"]
  96feb991_3c6a_01d9_060e_25a24b3ebf12 -->|calls| 31478937_9683_64c2_3ddf_507bb9334135
  b07825f6_829c_54a9_8c76_c2fe915b1d5d["testCloseFromClientWhileInActiveBidirectional()"]
  b07825f6_829c_54a9_8c76_c2fe915b1d5d -->|calls| 31478937_9683_64c2_3ddf_507bb9334135
  43a2bbed_91ff_667a_166e_262167cae00c["testHalfCloseFromClientWhileInActiveUnidirectional()"]
  43a2bbed_91ff_667a_166e_262167cae00c -->|calls| 31478937_9683_64c2_3ddf_507bb9334135
  36b01605_bb7f_b70d_09f2_11c89843eab2["testHalfCloseFromClientWhileInActiveBidirectional()"]
  36b01605_bb7f_b70d_09f2_11c89843eab2 -->|calls| 31478937_9683_64c2_3ddf_507bb9334135
  bb517bde_3625_659c_2f19_e0e8b5f99b16["StreamCreationHandler()"]
  31478937_9683_64c2_3ddf_507bb9334135 -->|calls| bb517bde_3625_659c_2f19_e0e8b5f99b16
  style 31478937_9683_64c2_3ddf_507bb9334135 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java lines 129–165

    private static void testCloseFromClientWhileInActive(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 QuicChannelValidationHandler();
            server = QuicTestUtils.newServer(executor, serverHandler, new StreamHandler());
            channel = QuicTestUtils.newClient(executor);

            StreamCreationHandler creationHandler = new StreamCreationHandler(type, halfClose, streamPromise);
            QuicChannel quicChannel = QuicTestUtils.newQuicChannelBootstrap(channel)
                    .handler(creationHandler)
                    .streamHandler(new ChannelInboundHandlerAdapter())
                    .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();
            creationHandler.assertState();
        } finally {
            QuicTestUtils.closeIfNotNull(channel);
            QuicTestUtils.closeIfNotNull(server);

            shutdown(executor);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testCloseFromClientWhileInActive() do?
testCloseFromClientWhileInActive() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java.
Where is testCloseFromClientWhileInActive() defined?
testCloseFromClientWhileInActive() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java at line 129.
What does testCloseFromClientWhileInActive() call?
testCloseFromClientWhileInActive() calls 1 function(s): StreamCreationHandler.
What calls testCloseFromClientWhileInActive()?
testCloseFromClientWhileInActive() is called by 4 function(s): testCloseFromClientWhileInActiveBidirectional, testCloseFromClientWhileInActiveUnidirectional, testHalfCloseFromClientWhileInActiveBidirectional, testHalfCloseFromClientWhileInActiveUnidirectional.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free