Home / Function/ windowUpdateShouldSendOnceBytesReturned() — netty Function Reference

windowUpdateShouldSendOnceBytesReturned() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 109–124

    @Test
    public void windowUpdateShouldSendOnceBytesReturned() throws Http2Exception {
        int dataSize = (int) (DEFAULT_WINDOW_SIZE * DEFAULT_WINDOW_UPDATE_RATIO) + 1;
        receiveFlowControlledFrame(STREAM_ID, dataSize, 0, false);

        // Return only a few bytes and verify that the WINDOW_UPDATE hasn't been sent.
        assertFalse(consumeBytes(STREAM_ID, 10));
        verifyWindowUpdateNotSent(STREAM_ID);
        verifyWindowUpdateNotSent(CONNECTION_STREAM_ID);

        // Return the rest and verify the WINDOW_UPDATE is sent.
        assertTrue(consumeBytes(STREAM_ID, dataSize - 10));
        verifyWindowUpdateSent(STREAM_ID, dataSize);
        verifyWindowUpdateSent(CONNECTION_STREAM_ID, dataSize);
        verifyNoMoreInteractions(frameWriter);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free