tryExpandConnectionFlowControlWindow() — netty Function Reference
Architecture documentation for the tryExpandConnectionFlowControlWindow() function in Http2FrameCodec.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 00a9b5ed_642d_3de9_0443_03f66b22d1c8["tryExpandConnectionFlowControlWindow()"] ba77a225_4637_fe77_ee1f_54a9774ca7f8["Http2FrameCodec"] 00a9b5ed_642d_3de9_0443_03f66b22d1c8 -->|defined in| ba77a225_4637_fe77_ee1f_54a9774ca7f8 7795823d_413a_96d1_ee63_6dda0df913d5["handlerAdded()"] 7795823d_413a_96d1_ee63_6dda0df913d5 -->|calls| 00a9b5ed_642d_3de9_0443_03f66b22d1c8 4c3d3913_a400_e447_0997_8e68ce8c89a7["userEventTriggered()"] 4c3d3913_a400_e447_0997_8e68ce8c89a7 -->|calls| 00a9b5ed_642d_3de9_0443_03f66b22d1c8 style 00a9b5ed_642d_3de9_0443_03f66b22d1c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java lines 230–244
private void tryExpandConnectionFlowControlWindow(Http2Connection connection) throws Http2Exception {
if (initialFlowControlWindowSize != null) {
// The window size in the settings explicitly excludes the connection window. So we manually manipulate the
// connection window to accommodate more concurrent data per connection.
Http2Stream connectionStream = connection.connectionStream();
Http2LocalFlowController localFlowController = connection.local().flowController();
final int delta = initialFlowControlWindowSize - localFlowController.initialWindowSize(connectionStream);
// Only increase the connection window, don't decrease it.
if (delta > 0) {
// Double the delta just so a single stream can't exhaust the connection window.
localFlowController.incrementWindowSize(connectionStream, Math.max(delta << 1, delta));
flush(ctx);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does tryExpandConnectionFlowControlWindow() do?
tryExpandConnectionFlowControlWindow() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java.
Where is tryExpandConnectionFlowControlWindow() defined?
tryExpandConnectionFlowControlWindow() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java at line 230.
What calls tryExpandConnectionFlowControlWindow()?
tryExpandConnectionFlowControlWindow() is called by 2 function(s): handlerAdded, userEventTriggered.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free