Home / Function/ canSendGoAwayFramesWithDecreasingLastStreamIds() — netty Function Reference

canSendGoAwayFramesWithDecreasingLastStreamIds() — netty Function Reference

Architecture documentation for the canSendGoAwayFramesWithDecreasingLastStreamIds() function in Http2ConnectionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  eb9414cd_ca66_a7cb_2885_a01f25ef2d32["canSendGoAwayFramesWithDecreasingLastStreamIds()"]
  e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"]
  eb9414cd_ca66_a7cb_2885_a01f25ef2d32 -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5
  style eb9414cd_ca66_a7cb_2885_a01f25ef2d32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 657–672

    @Test
    public void canSendGoAwayFramesWithDecreasingLastStreamIds() throws Exception {
        handler = newHandler();
        ByteBuf data = dummyData();
        long errorCode = Http2Error.INTERNAL_ERROR.code();

        handler.goAway(ctx, STREAM_ID + 2, errorCode, data.retain(), promise);
        verify(frameWriter).writeGoAway(eq(ctx), eq(STREAM_ID + 2), eq(errorCode), eq(data),
                eq(promise));
        verify(connection).goAwaySent(eq(STREAM_ID + 2), eq(errorCode), eq(data));
        promise = new DefaultChannelPromise(channel);
        handler.goAway(ctx, STREAM_ID, errorCode, data, promise);
        verify(frameWriter).writeGoAway(eq(ctx), eq(STREAM_ID), eq(errorCode), eq(data), eq(promise));
        verify(connection).goAwaySent(eq(STREAM_ID), eq(errorCode), eq(data));
        assertEquals(0, data.refCnt());
    }

Domain

Subdomains

Frequently Asked Questions

What does canSendGoAwayFramesWithDecreasingLastStreamIds() do?
canSendGoAwayFramesWithDecreasingLastStreamIds() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is canSendGoAwayFramesWithDecreasingLastStreamIds() defined?
canSendGoAwayFramesWithDecreasingLastStreamIds() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 657.

Analyze Your Own Codebase

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

Try Supermodel Free