shutdownInput() — netty Function Reference
Architecture documentation for the shutdownInput() function in AbstractIoUringChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e589c1fb_aed1_8a87_ea86_091e377c54c9["shutdownInput()"] 19011d76_ce85_4831_bbdf_3b21a88f2b1b["AbstractUringUnsafe"] e589c1fb_aed1_8a87_ea86_091e377c54c9 -->|defined in| 19011d76_ce85_4831_bbdf_3b21a88f2b1b 8311957b_86d1_5783_3d8a_214c886ad3bc["pollRdHup()"] 8311957b_86d1_5783_3d8a_214c886ad3bc -->|calls| e589c1fb_aed1_8a87_ea86_091e377c54c9 9b28a532_f04c_f45b_8f41_75c45e3a43d8["isAllowHalfClosure()"] e589c1fb_aed1_8a87_ea86_091e377c54c9 -->|calls| 9b28a532_f04c_f45b_8f41_75c45e3a43d8 4c4a896f_c071_09b7_f267_96edcf08e89a["fireEventAndClose()"] e589c1fb_aed1_8a87_ea86_091e377c54c9 -->|calls| 4c4a896f_c071_09b7_f267_96edcf08e89a 941f2659_0934_3a6d_3c64_960438f90518["close()"] e589c1fb_aed1_8a87_ea86_091e377c54c9 -->|calls| 941f2659_0934_3a6d_3c64_960438f90518 style e589c1fb_aed1_8a87_ea86_091e377c54c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java lines 687–714
final void shutdownInput(boolean allDataRead) {
logger.trace("shutdownInput Fd: {}", fd().intValue());
if (!socket.isInputShutdown()) {
if (isAllowHalfClosure(config())) {
try {
socket.shutdown(true, false);
} catch (IOException ignored) {
// We attempted to shutdown and failed, which means the input has already effectively been
// shutdown.
fireEventAndClose(ChannelInputShutdownEvent.INSTANCE);
return;
} catch (NotYetConnectedException ignore) {
// We attempted to shutdown and failed, which means the input has already effectively been
// shutdown.
}
pipeline().fireUserEventTriggered(ChannelInputShutdownEvent.INSTANCE);
} else {
// Handle this same way as if we did read all data so we don't schedule another read.
inputClosedSeenErrorOnRead = true;
close(voidPromise());
return;
}
}
if (allDataRead && !inputClosedSeenErrorOnRead) {
inputClosedSeenErrorOnRead = true;
pipeline().fireUserEventTriggered(ChannelInputShutdownReadComplete.INSTANCE);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does shutdownInput() do?
shutdownInput() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java.
Where is shutdownInput() defined?
shutdownInput() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java at line 687.
What does shutdownInput() call?
shutdownInput() calls 3 function(s): close, fireEventAndClose, isAllowHalfClosure.
What calls shutdownInput()?
shutdownInput() is called by 1 function(s): pollRdHup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free