minUsableChannelBytes() — netty Function Reference
Architecture documentation for the minUsableChannelBytes() function in DefaultHttp2RemoteFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6["minUsableChannelBytes()"] 415966d7_2c19_58a9_659f_282cc732e73c["DefaultHttp2RemoteFlowController"] b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6 -->|defined in| 415966d7_2c19_58a9_659f_282cc732e73c ab77a5ad_de02_f74b_aa2f_07d659643816["maxUsableChannelBytes()"] ab77a5ad_de02_f74b_aa2f_07d659643816 -->|calls| b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6 style b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java lines 236–244
private int minUsableChannelBytes() {
// The current allocation algorithm values "fairness" and doesn't give any consideration to "goodput". It
// is possible that 1 byte will be allocated to many streams. In an effort to try to make "goodput"
// reasonable with the current allocation algorithm we have this "cheap" check up front to ensure there is
// an "adequate" amount of connection window before allocation is attempted. This is not foolproof as if the
// number of streams is >= this minimal number then we may still have the issue, but the idea is to narrow the
// circumstances in which this can happen without rewriting the allocation algorithm.
return max(ctx.channel().config().getWriteBufferLowWaterMark(), MIN_WRITABLE_CHUNK);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does minUsableChannelBytes() do?
minUsableChannelBytes() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java.
Where is minUsableChannelBytes() defined?
minUsableChannelBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java at line 236.
What calls minUsableChannelBytes()?
minUsableChannelBytes() is called by 1 function(s): maxUsableChannelBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free