Home / Function/ handleReadException() — netty Function Reference

handleReadException() — netty Function Reference

Architecture documentation for the handleReadException() function in AbstractKQueueStreamChannel.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  992cf68c_d981_2e34_b60d_f19218c38fe8["handleReadException()"]
  9d9cd790_d6e0_6f39_011d_e69a35e7c41f["KQueueStreamUnsafe"]
  992cf68c_d981_2e34_b60d_f19218c38fe8 -->|defined in| 9d9cd790_d6e0_6f39_011d_e69a35e7c41f
  fdaf9f05_9ac5_91fc_0d36_89416c50ee16["readReady()"]
  fdaf9f05_9ac5_91fc_0d36_89416c50ee16 -->|calls| 992cf68c_d981_2e34_b60d_f19218c38fe8
  style 992cf68c_d981_2e34_b60d_f19218c38fe8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java lines 578–602

        private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close,
                                         KQueueRecvByteAllocatorHandle allocHandle) {
            if (byteBuf != null) {
                if (byteBuf.isReadable()) {
                    readPending = false;
                    pipeline.fireChannelRead(byteBuf);
                } else {
                    byteBuf.release();
                }
            }
            if (!failConnectPromise(cause)) {
                allocHandle.readComplete();
                pipeline.fireChannelReadComplete();
                pipeline.fireExceptionCaught(cause);

                // If oom will close the read event, release connection.
                // See https://github.com/netty/netty/issues/10434
                if (close ||
                        cause instanceof OutOfMemoryError ||
                        cause instanceof LeakPresenceDetector.AllocationProhibitedException ||
                        cause instanceof IOException) {
                    shutdownInput(false);
                }
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does handleReadException() do?
handleReadException() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java.
Where is handleReadException() defined?
handleReadException() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java at line 578.
What calls handleReadException()?
handleReadException() is called by 1 function(s): readReady.

Analyze Your Own Codebase

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

Try Supermodel Free