Home / Function/ goAwayReceivedShouldCloseStreamsGreaterThanLastStream() — netty Function Reference

goAwayReceivedShouldCloseStreamsGreaterThanLastStream() — netty Function Reference

Architecture documentation for the goAwayReceivedShouldCloseStreamsGreaterThanLastStream() function in DefaultHttp2ConnectionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1ed70ee7_bb67_cb69_9fa4_8c728ca80f2d["goAwayReceivedShouldCloseStreamsGreaterThanLastStream()"]
  8ad19b2d_97df_9c7f_e36e_ed43457889f2["DefaultHttp2ConnectionTest"]
  1ed70ee7_bb67_cb69_9fa4_8c728ca80f2d -->|defined in| 8ad19b2d_97df_9c7f_e36e_ed43457889f2
  style 1ed70ee7_bb67_cb69_9fa4_8c728ca80f2d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionTest.java lines 210–229

    @Test
    public void goAwayReceivedShouldCloseStreamsGreaterThanLastStream() throws Exception {
        Http2Stream stream1 = client.local().createStream(3, false);
        Http2Stream stream2 = client.local().createStream(5, false);
        Http2Stream remoteStream = client.remote().createStream(4, false);

        assertEquals(State.OPEN, stream1.state());
        assertEquals(State.OPEN, stream2.state());

        client.goAwayReceived(3, 8, null);

        assertEquals(State.OPEN, stream1.state());
        assertEquals(State.CLOSED, stream2.state());
        assertEquals(State.OPEN, remoteStream.state());
        assertEquals(3, client.local().lastStreamKnownByPeer());
        assertEquals(5, client.local().lastStreamCreated());
        // The remote endpoint must not be affected by a received GOAWAY frame.
        assertEquals(-1, client.remote().lastStreamKnownByPeer());
        assertEquals(State.OPEN, remoteStream.state());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free