Home / Function/ receiveFlowControlledFrame() — netty Function Reference

receiveFlowControlledFrame() — netty Function Reference

Architecture documentation for the receiveFlowControlledFrame() function in DefaultHttp2LocalFlowController.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9523c9a0_347c_e559_6167_578b8b4e1289["receiveFlowControlledFrame()"]
  45d84eff_651d_e7b2_c74b_baa69a4b9a46["DefaultState"]
  9523c9a0_347c_e559_6167_578b8b4e1289 -->|defined in| 45d84eff_651d_e7b2_c74b_baa69a4b9a46
  b0c71dc8_88a3_2cf1_3532_2d5523d0aa36["receiveFlowControlledFrame()"]
  b0c71dc8_88a3_2cf1_3532_2d5523d0aa36 -->|calls| 9523c9a0_347c_e559_6167_578b8b4e1289
  b0c71dc8_88a3_2cf1_3532_2d5523d0aa36["receiveFlowControlledFrame()"]
  9523c9a0_347c_e559_6167_578b8b4e1289 -->|calls| b0c71dc8_88a3_2cf1_3532_2d5523d0aa36
  style 9523c9a0_347c_e559_6167_578b8b4e1289 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 414–430

        @Override
        public void receiveFlowControlledFrame(int dataLength) throws Http2Exception {
            assert dataLength >= 0;

            // Apply the delta. Even if we throw an exception we want to have taken this delta into account.
            window -= dataLength;

            // Window size can become negative if we sent a SETTINGS frame that reduces the
            // size of the transfer window after the peer has written data frames.
            // The value is bounded by the length that SETTINGS frame decrease the window.
            // This difference is stored for the connection when writing the SETTINGS frame
            // and is cleared once we send a WINDOW_UPDATE frame.
            if (window < lowerBound) {
                throw streamError(stream.id(), FLOW_CONTROL_ERROR,
                        "Flow control window exceeded for stream: %d", stream.id());
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does receiveFlowControlledFrame() do?
receiveFlowControlledFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is receiveFlowControlledFrame() defined?
receiveFlowControlledFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 414.
What does receiveFlowControlledFrame() call?
receiveFlowControlledFrame() calls 1 function(s): receiveFlowControlledFrame.
What calls receiveFlowControlledFrame()?
receiveFlowControlledFrame() is called by 1 function(s): receiveFlowControlledFrame.

Analyze Your Own Codebase

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

Try Supermodel Free