maybeMoreDataToRead() — netty Function Reference
Architecture documentation for the maybeMoreDataToRead() function in KQueueRecvByteAllocatorHandle.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9a63cf2d_dc23_1c65_d113_061f98164a9c["maybeMoreDataToRead()"] 4bd64f5c_3774_04e4_bcf5_527707cf8502["KQueueRecvByteAllocatorHandle"] 9a63cf2d_dc23_1c65_d113_061f98164a9c -->|defined in| 4bd64f5c_3774_04e4_bcf5_527707cf8502 style 9a63cf2d_dc23_1c65_d113_061f98164a9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueRecvByteAllocatorHandle.java lines 72–84
private boolean maybeMoreDataToRead() {
/**
* kqueue with EV_CLEAR flag set requires that we read until we consume "data" bytes
* (see <a href="https://www.freebsd.org/cgi/man.cgi?kqueue">kqueue man</a>). However in order to
* respect auto read we supporting reading to stop if auto read is off. If auto read is on we force reading to
* continue to avoid a {@link StackOverflowError} between channelReadComplete and reading from the
* channel. It is expected that the {@link #KQueueSocketChannel} implementations will track if all data was not
* read, and will force a EVFILT_READ ready event.
*
* It is assumed EOF is handled externally by checking {@link #isReadEOF()}.
*/
return lastBytesRead() == attemptedBytesRead();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does maybeMoreDataToRead() do?
maybeMoreDataToRead() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueRecvByteAllocatorHandle.java.
Where is maybeMoreDataToRead() defined?
maybeMoreDataToRead() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueRecvByteAllocatorHandle.java at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free