Home / Function/ goAwayLastStreamIdOverflowed() — netty Function Reference

goAwayLastStreamIdOverflowed() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  800791c8_ccf6_0f96_5085_0202f9219b68["goAwayLastStreamIdOverflowed()"]
  71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"]
  800791c8_ccf6_0f96_5085_0202f9219b68 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c
  style 800791c8_ccf6_0f96_5085_0202f9219b68 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 463–483

    @Test
    public void goAwayLastStreamIdOverflowed() throws Exception {
        frameInboundWriter.writeInboundHeaders(5, request, 31, false);

        Http2Stream stream = frameCodec.connection().stream(5);
        assertNotNull(stream);
        assertEquals(State.OPEN, stream.state());

        ByteBuf debugData = bb("debug");
        Http2GoAwayFrame goAwayFrame = new DefaultHttp2GoAwayFrame(NO_ERROR.code(),
                debugData.retainedDuplicate());
        goAwayFrame.setExtraStreamIds(Integer.MAX_VALUE);

        channel.writeOutbound(goAwayFrame);
        // When the last stream id computation overflows, the last stream id should just be set to 2^31 - 1.
        verify(frameWriter).writeGoAway(eqFrameCodecCtx(), eq(Integer.MAX_VALUE),
                eq(NO_ERROR.code()), eq(debugData), anyChannelPromise());
        debugData.release();
        assertEquals(State.OPEN, stream.state());
        assertTrue(channel.isActive());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free