Home / Function/ onHttp2GoAwayFrame() — netty Function Reference

onHttp2GoAwayFrame() — netty Function Reference

Architecture documentation for the onHttp2GoAwayFrame() function in Http2MultiplexHandler.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  6d465bcf_00d0_5886_8379_c985b729d3c1["onHttp2GoAwayFrame()"]
  42ad104c_27ce_3949_598d_983571f45120["Http2MultiplexHandler"]
  6d465bcf_00d0_5886_8379_c985b729d3c1 -->|defined in| 42ad104c_27ce_3949_598d_983571f45120
  a4fe4bba_654a_3aa2_9f5e_6a5657ed6a2d["channelRead()"]
  a4fe4bba_654a_3aa2_9f5e_6a5657ed6a2d -->|calls| 6d465bcf_00d0_5886_8379_c985b729d3c1
  d62c1758_06e8_d0f2_282d_fb82aafdbba4["isServer()"]
  6d465bcf_00d0_5886_8379_c985b729d3c1 -->|calls| d62c1758_06e8_d0f2_282d_fb82aafdbba4
  style 6d465bcf_00d0_5886_8379_c985b729d3c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java lines 326–350

    private void onHttp2GoAwayFrame(ChannelHandlerContext ctx, final Http2GoAwayFrame goAwayFrame) {
        if (goAwayFrame.lastStreamId() == Integer.MAX_VALUE) {
            // None of the streams can have an id greater than Integer.MAX_VALUE
            return;
        }
        // Notify which streams were not processed by the remote peer and are safe to retry on another connection:
        try {
            final boolean server = isServer(ctx);
            forEachActiveStream(new Http2FrameStreamVisitor() {
                @Override
                public boolean visit(Http2FrameStream stream) {
                    final int streamId = stream.id();
                    if (streamId > goAwayFrame.lastStreamId() && Http2CodecUtil.isStreamIdValid(streamId, server)) {
                        final AbstractHttp2StreamChannel childChannel = (AbstractHttp2StreamChannel)
                                ((DefaultHttp2FrameStream) stream).attachment;
                        childChannel.pipeline().fireUserEventTriggered(goAwayFrame.retainedDuplicate());
                    }
                    return true;
                }
            });
        } catch (Http2Exception e) {
            ctx.fireExceptionCaught(e);
            ctx.close();
        }
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free