Home / Function/ windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() — netty Function Reference

windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() — netty Function Reference

Architecture documentation for the windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() function in DefaultHttp2LocalFlowControllerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e1530ef4_0426_81aa_f5bb_f85c171d2ab4["windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes()"]
  99976e08_de48_4e06_40e5_5ee3655f2651["DefaultHttp2LocalFlowControllerTest"]
  e1530ef4_0426_81aa_f5bb_f85c171d2ab4 -->|defined in| 99976e08_de48_4e06_40e5_5ee3655f2651
  62113048_84a9_1cf9_75f0_0ef0f3788315["receiveFlowControlledFrame()"]
  e1530ef4_0426_81aa_f5bb_f85c171d2ab4 -->|calls| 62113048_84a9_1cf9_75f0_0ef0f3788315
  0704ea53_57a1_5305_109e_c7f112548050["verifyWindowUpdateNotSent()"]
  e1530ef4_0426_81aa_f5bb_f85c171d2ab4 -->|calls| 0704ea53_57a1_5305_109e_c7f112548050
  edb012e8_f760_5fb6_314e_77a6bfaf20b0["verifyWindowUpdateSent()"]
  e1530ef4_0426_81aa_f5bb_f85c171d2ab4 -->|calls| edb012e8_f760_5fb6_314e_77a6bfaf20b0
  style e1530ef4_0426_81aa_f5bb_f85c171d2ab4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 171–191

    @Test
    public void windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() throws Http2Exception {
        int dataSize = (int) (DEFAULT_WINDOW_SIZE * DEFAULT_WINDOW_UPDATE_RATIO) + 1;

        // Don't set end-of-stream on the frame as we want to verify that we not return the unconsumed bytes in this
        // case once the stream was closed,
        receiveFlowControlledFrame(STREAM_ID, dataSize, 0, false);
        verifyWindowUpdateNotSent(CONNECTION_STREAM_ID);
        verifyWindowUpdateNotSent(STREAM_ID);

        // Close the stream
        Http2Stream stream = connection.stream(STREAM_ID);
        stream.close();
        assertEquals(State.CLOSED, stream.state());
        assertNull(connection.stream(STREAM_ID));

        // The window update for the connection should made it through but not the update for the already closed
        // stream
        verifyWindowUpdateSent(CONNECTION_STREAM_ID, dataSize);
        verifyWindowUpdateNotSent(STREAM_ID);
    }

Domain

Subdomains

Frequently Asked Questions

What does windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() do?
windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java.
Where is windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() defined?
windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java at line 171.
What does windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() call?
windowUpdateShouldNotBeSentAfterStreamIsClosedForUnconsumedBytes() calls 3 function(s): receiveFlowControlledFrame, verifyWindowUpdateNotSent, verifyWindowUpdateSent.

Analyze Your Own Codebase

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

Try Supermodel Free