Home / Function/ onRstStreamRead() — netty Function Reference

onRstStreamRead() — netty Function Reference

Architecture documentation for the onRstStreamRead() function in DefaultHttp2ConnectionDecoder.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  553507db_4414_04ec_77da_598c22714cba["onRstStreamRead()"]
  0189a990_8f54_63f5_92fb_f168c031db1e["FrameReadListener"]
  553507db_4414_04ec_77da_598c22714cba -->|defined in| 0189a990_8f54_63f5_92fb_f168c031db1e
  f17f7216_ce2e_36bf_1376_2384370a35b1["onRstStreamRead()"]
  f17f7216_ce2e_36bf_1376_2384370a35b1 -->|calls| 553507db_4414_04ec_77da_598c22714cba
  f17f7216_ce2e_36bf_1376_2384370a35b1["onRstStreamRead()"]
  553507db_4414_04ec_77da_598c22714cba -->|calls| f17f7216_ce2e_36bf_1376_2384370a35b1
  a2d8c4e1_92a0_ea7d_3a12_abc7419c584a["verifyStreamMayHaveExisted()"]
  553507db_4414_04ec_77da_598c22714cba -->|calls| a2d8c4e1_92a0_ea7d_3a12_abc7419c584a
  style 553507db_4414_04ec_77da_598c22714cba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java lines 439–459

        @Override
        public void onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) throws Http2Exception {
            Http2Stream stream = connection.stream(streamId);
            if (stream == null) {
                verifyStreamMayHaveExisted(streamId, false, "RST_STREAM");
                return;
            }

            switch(stream.state()) {
            case IDLE:
                throw connectionError(PROTOCOL_ERROR, "RST_STREAM received for IDLE stream %d", streamId);
            case CLOSED:
                return; // RST_STREAM frames must be ignored for closed streams.
            default:
                break;
            }

            listener.onRstStreamRead(ctx, streamId, errorCode);

            lifecycleManager.closeStream(stream, ctx.newSucceededFuture());
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does onRstStreamRead() do?
onRstStreamRead() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java.
Where is onRstStreamRead() defined?
onRstStreamRead() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java at line 439.
What does onRstStreamRead() call?
onRstStreamRead() calls 2 function(s): onRstStreamRead, verifyStreamMayHaveExisted.
What calls onRstStreamRead()?
onRstStreamRead() is called by 1 function(s): onRstStreamRead.

Analyze Your Own Codebase

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

Try Supermodel Free