writeGoAwayFrame() — netty Function Reference
Architecture documentation for the writeGoAwayFrame() function in Http2FrameCodec.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f958372_1e41_1ad3_a4a7_5139b366d29b["writeGoAwayFrame()"] ba77a225_4637_fe77_ee1f_54a9774ca7f8["Http2FrameCodec"] 2f958372_1e41_1ad3_a4a7_5139b366d29b -->|defined in| ba77a225_4637_fe77_ee1f_54a9774ca7f8 dabb27f9_26d0_6cce_3476_d90ad2682131["write()"] dabb27f9_26d0_6cce_3476_d90ad2682131 -->|calls| 2f958372_1e41_1ad3_a4a7_5139b366d29b style 2f958372_1e41_1ad3_a4a7_5139b366d29b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java lines 386–399
private void writeGoAwayFrame(ChannelHandlerContext ctx, Http2GoAwayFrame frame, ChannelPromise promise) {
if (frame.lastStreamId() > -1) {
frame.release();
throw new IllegalArgumentException("Last stream id must not be set on GOAWAY frame");
}
int lastStreamCreated = connection().remote().lastStreamCreated();
long lastStreamId = lastStreamCreated + ((long) frame.extraStreamIds()) * 2;
// Check if the computation overflowed.
if (lastStreamId > Integer.MAX_VALUE) {
lastStreamId = Integer.MAX_VALUE;
}
goAway(ctx, (int) lastStreamId, frame.errorCode(), frame.content(), promise);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does writeGoAwayFrame() do?
writeGoAwayFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java.
Where is writeGoAwayFrame() defined?
writeGoAwayFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java at line 386.
What calls writeGoAwayFrame()?
writeGoAwayFrame() is called by 1 function(s): write.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free