Home / Function/ connectionWindowShouldAutoRefillWhenDataReceived() — netty Function Reference

connectionWindowShouldAutoRefillWhenDataReceived() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 126–144

    @Test
    public void connectionWindowShouldAutoRefillWhenDataReceived() throws Http2Exception {
        // Reconfigure controller to auto-refill the connection window.
        initController(true);

        int dataSize = (int) (DEFAULT_WINDOW_SIZE * DEFAULT_WINDOW_UPDATE_RATIO) + 1;
        receiveFlowControlledFrame(STREAM_ID, dataSize, 0, false);
        // Verify that we immediately refill the connection window.
        verifyWindowUpdateSent(CONNECTION_STREAM_ID, dataSize);

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free