testShutdownSoLingerNoAssertError0() — netty Function Reference
Architecture documentation for the testShutdownSoLingerNoAssertError0() function in SocketShutdownOutputBySelfTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6dfe63e2_7d71_771a_8ba4_18207759db0e["testShutdownSoLingerNoAssertError0()"] 7c0e0e25_e115_ef04_bb8b_a0565a452d87["SocketShutdownOutputBySelfTest"] 6dfe63e2_7d71_771a_8ba4_18207759db0e -->|defined in| 7c0e0e25_e115_ef04_bb8b_a0565a452d87 b3dd9482_4265_6d6b_f37b_b132c806475b["testShutdownOutputSoLingerNoAssertError()"] b3dd9482_4265_6d6b_f37b_b132c806475b -->|calls| 6dfe63e2_7d71_771a_8ba4_18207759db0e 34e714b9_a66e_6047_9592_75daa0e580b8["testShutdownSoLingerNoAssertError()"] 34e714b9_a66e_6047_9592_75daa0e580b8 -->|calls| 6dfe63e2_7d71_771a_8ba4_18207759db0e style 6dfe63e2_7d71_771a_8ba4_18207759db0e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketShutdownOutputBySelfTest.java lines 250–277
private void testShutdownSoLingerNoAssertError0(Bootstrap cb, boolean output) throws Throwable {
ServerSocket ss = new ServerSocket();
Socket s = null;
ChannelFuture cf = null;
try {
ss.bind(newSocketAddress());
cf = cb.option(ChannelOption.SO_LINGER, 1).handler(new ChannelInboundHandlerAdapter())
.connect(ss.getLocalSocketAddress()).sync();
s = ss.accept();
cf.sync();
if (output) {
((SocketChannel) cf.channel()).shutdownOutput().sync();
} else {
((SocketChannel) cf.channel()).shutdown().sync();
}
} finally {
if (s != null) {
s.close();
}
if (cf != null) {
cf.channel().close();
}
ss.close();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testShutdownSoLingerNoAssertError0() do?
testShutdownSoLingerNoAssertError0() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketShutdownOutputBySelfTest.java.
Where is testShutdownSoLingerNoAssertError0() defined?
testShutdownSoLingerNoAssertError0() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketShutdownOutputBySelfTest.java at line 250.
What calls testShutdownSoLingerNoAssertError0()?
testShutdownSoLingerNoAssertError0() is called by 2 function(s): testShutdownOutputSoLingerNoAssertError, testShutdownSoLingerNoAssertError.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free