Home / Function/ dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() — netty Function Reference

dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() — netty Function Reference

Architecture documentation for the dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() function in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7ab900e0_f32f_a59c_bef0_19bd02198f9b["dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint()"]
  7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"]
  7ab900e0_f32f_a59c_bef0_19bd02198f9b -->|defined in| 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc
  28b2b7c9_8beb_d303_e32e_93d71db99fcd["mockGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint()"]
  7ab900e0_f32f_a59c_bef0_19bd02198f9b -->|calls| 28b2b7c9_8beb_d303_e32e_93d71db99fcd
  acdaafb9_3038_adff_8f39_69a82babf017["mockFlowControl()"]
  7ab900e0_f32f_a59c_bef0_19bd02198f9b -->|calls| acdaafb9_3038_adff_8f39_69a82babf017
  style 7ab900e0_f32f_a59c_bef0_19bd02198f9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 270–288

    @Test
    public void dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() throws Exception {
        mockGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint();

        final ByteBuf data = dummyData();
        int padding = 10;
        int processedBytes = data.readableBytes() + padding;
        mockFlowControl(processedBytes);
        try {
            decode().onDataRead(ctx, STREAM_ID, data, padding, true);
            verify(localFlow).receiveFlowControlledFrame(eq(stream), eq(data), eq(padding), eq(true));
            verify(localFlow).consumeBytes(eq(stream), eq(processedBytes));

            // Verify that the event was absorbed and not propagated to the observer.
            verify(listener).onDataRead(eq(ctx), anyInt(), any(ByteBuf.class), anyInt(), anyBoolean());
        } finally {
            data.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() do?
dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java.
Where is dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() defined?
dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java at line 270.
What does dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() call?
dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint() calls 2 function(s): mockFlowControl, mockGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint.

Analyze Your Own Codebase

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

Try Supermodel Free