enforceMaxPayloadLength() — netty Function Reference
Architecture documentation for the enforceMaxPayloadLength() function in Http3FrameCodec.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 40fb57c4_f85d_87ad_ac47_bdfc5af1b6d8["enforceMaxPayloadLength()"] 57499e74_1040_f300_12bb_215179e108be["Http3FrameCodec"] 40fb57c4_f85d_87ad_ac47_bdfc5af1b6d8 -->|defined in| 57499e74_1040_f300_12bb_215179e108be 8b0697bd_1098_91ad_7558_7e1c678364c7["decodeFrame()"] 8b0697bd_1098_91ad_7558_7e1c678364c7 -->|calls| 40fb57c4_f85d_87ad_ac47_bdfc5af1b6d8 bc9d9e09_417f_cc2b_50ed_b48f93b8395c["connectionError()"] 40fb57c4_f85d_87ad_ac47_bdfc5af1b6d8 -->|calls| bc9d9e09_417f_cc2b_50ed_b48f93b8395c style 40fb57c4_f85d_87ad_ac47_bdfc5af1b6d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java lines 345–354
private boolean enforceMaxPayloadLength(
ChannelHandlerContext ctx, ByteBuf in, int type, int payLoadLength,
long maxPayLoadLength, Http3ErrorCode error) {
if (payLoadLength > maxPayLoadLength) {
connectionError(ctx, error,
"Received an invalid frame len " + payLoadLength + " for frame of type " + type + '.', true);
return false;
}
return in.readableBytes() >= payLoadLength;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does enforceMaxPayloadLength() do?
enforceMaxPayloadLength() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java.
Where is enforceMaxPayloadLength() defined?
enforceMaxPayloadLength() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java at line 345.
What does enforceMaxPayloadLength() call?
enforceMaxPayloadLength() calls 1 function(s): connectionError.
What calls enforceMaxPayloadLength()?
enforceMaxPayloadLength() is called by 1 function(s): decodeFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free