Home / Function/ doNotLeakOnFailedInitializationForChannels() — netty Function Reference

doNotLeakOnFailedInitializationForChannels() — netty Function Reference

Architecture documentation for the doNotLeakOnFailedInitializationForChannels() function in Http2FrameCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a00e2ff4_5b7c_ced2_4231_bfdd73c96e74["doNotLeakOnFailedInitializationForChannels()"]
  71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"]
  a00e2ff4_5b7c_ced2_4231_bfdd73c96e74 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c
  868f866c_1fcb_c067_1110_d326c0e4d94b["setUp()"]
  a00e2ff4_5b7c_ced2_4231_bfdd73c96e74 -->|calls| 868f866c_1fcb_c067_1110_d326c0e4d94b
  style a00e2ff4_5b7c_ced2_4231_bfdd73c96e74 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 749–774

    @Test
    public void doNotLeakOnFailedInitializationForChannels() throws Exception {
        setUp(Http2FrameCodecBuilder.forServer(), new Http2Settings().maxConcurrentStreams(2));

        Http2FrameStream stream1 = frameCodec.newStream();
        Http2FrameStream stream2 = frameCodec.newStream();

        ChannelPromise stream1HeaderPromise = channel.newPromise();
        ChannelPromise stream2HeaderPromise = channel.newPromise();

        channel.writeAndFlush(new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()).stream(stream1),
                              stream1HeaderPromise);
        channel.runPendingTasks();

        frameInboundWriter.writeInboundGoAway(stream1.id(), 0L, Unpooled.EMPTY_BUFFER);

        channel.writeAndFlush(new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()).stream(stream2),
                              stream2HeaderPromise);
        channel.runPendingTasks();

        assertTrue(stream1HeaderPromise.syncUninterruptibly().isSuccess());
        assertTrue(stream2HeaderPromise.isDone());

        assertEquals(0, frameCodec.numInitializingStreams());
        assertFalse(channel.finishAndReleaseAll());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does doNotLeakOnFailedInitializationForChannels() do?
doNotLeakOnFailedInitializationForChannels() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is doNotLeakOnFailedInitializationForChannels() defined?
doNotLeakOnFailedInitializationForChannels() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 749.
What does doNotLeakOnFailedInitializationForChannels() call?
doNotLeakOnFailedInitializationForChannels() calls 1 function(s): setUp.

Analyze Your Own Codebase

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

Try Supermodel Free