adjustMaxBytesPerGatheringWrite() — netty Function Reference
Architecture documentation for the adjustMaxBytesPerGatheringWrite() function in AbstractEpollStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 33481a97_2b4d_55aa_8999_b11ea1a94b03["adjustMaxBytesPerGatheringWrite()"] 6ec314cd_b42f_72bd_344b_f54212398142["AbstractEpollStreamChannel"] 33481a97_2b4d_55aa_8999_b11ea1a94b03 -->|defined in| 6ec314cd_b42f_72bd_344b_f54212398142 a5dc69a3_d29e_d4a5_1eb0_e9fdb99b443e["writeBytesMultiple()"] a5dc69a3_d29e_d4a5_1eb0_e9fdb99b443e -->|calls| 33481a97_2b4d_55aa_8999_b11ea1a94b03 style 33481a97_2b4d_55aa_8999_b11ea1a94b03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 275–286
private void adjustMaxBytesPerGatheringWrite(long attempted, long written, long oldMaxBytesPerGatheringWrite) {
// By default we track the SO_SNDBUF when ever it is explicitly set. However some OSes may dynamically change
// SO_SNDBUF (and other characteristics that determine how much data can be written at once) so we should try
// make a best effort to adjust as OS behavior changes.
if (attempted == written) {
if (attempted << 1 > oldMaxBytesPerGatheringWrite) {
config().setMaxBytesPerGatheringWrite(attempted << 1);
}
} else if (attempted > MAX_BYTES_PER_GATHERING_WRITE_ATTEMPTED_LOW_THRESHOLD && written < attempted >>> 1) {
config().setMaxBytesPerGatheringWrite(attempted >>> 1);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does adjustMaxBytesPerGatheringWrite() do?
adjustMaxBytesPerGatheringWrite() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is adjustMaxBytesPerGatheringWrite() defined?
adjustMaxBytesPerGatheringWrite() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 275.
What calls adjustMaxBytesPerGatheringWrite()?
adjustMaxBytesPerGatheringWrite() is called by 1 function(s): writeBytesMultiple.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free