handleReadException() — netty Function Reference
Architecture documentation for the handleReadException() function in AbstractEpollStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 13ded924_af0b_a7c0_afbc_d26699c3f7a3["handleReadException()"] 72ebf1b5_495b_1c86_5feb_799c19e065e3["EpollStreamUnsafe"] 13ded924_af0b_a7c0_afbc_d26699c3f7a3 -->|defined in| 72ebf1b5_495b_1c86_5feb_799c19e065e3 7df0a4ff_9721_6d9a_87c1_13687d3d7428["epollInReady()"] 7df0a4ff_9721_6d9a_87c1_13687d3d7428 -->|calls| 13ded924_af0b_a7c0_afbc_d26699c3f7a3 style 13ded924_af0b_a7c0_afbc_d26699c3f7a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 720–742
private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause,
boolean allDataRead, EpollRecvByteAllocatorHandle allocHandle) {
if (byteBuf != null) {
if (byteBuf.isReadable()) {
readPending = false;
pipeline.fireChannelRead(byteBuf);
} else {
byteBuf.release();
}
}
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 (allDataRead ||
cause instanceof OutOfMemoryError ||
cause instanceof LeakPresenceDetector.AllocationProhibitedException ||
cause instanceof IOException) {
shutdownInput(true);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does handleReadException() do?
handleReadException() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is handleReadException() defined?
handleReadException() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 720.
What calls handleReadException()?
handleReadException() is called by 1 function(s): epollInReady.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free