testCloseOnError() — netty Function Reference
Architecture documentation for the testCloseOnError() function in NioServerDomainSocketChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 04d5814a_e413_e10e_b498_91927a9dc84d["testCloseOnError()"] c690aba4_88d4_67bf_6e0a_2ef650c45464["NioServerDomainSocketChannelTest"] 04d5814a_e413_e10e_b498_91927a9dc84d -->|defined in| c690aba4_88d4_67bf_6e0a_2ef650c45464 5a90c6c5_4f4f_1e97_1d6b_bb30ea1d9232["NioServerDomainSocketChannel()"] 04d5814a_e413_e10e_b498_91927a9dc84d -->|calls| 5a90c6c5_4f4f_1e97_1d6b_bb30ea1d9232 style 04d5814a_e413_e10e_b498_91927a9dc84d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java lines 46–62
@Test
public void testCloseOnError() throws Exception {
ServerSocketChannel jdkChannel = NioServerDomainSocketChannel.newChannel(SelectorProvider.provider());
NioServerDomainSocketChannel serverSocketChannel = new NioServerDomainSocketChannel(jdkChannel);
EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
File file = newRandomTmpFile();
try {
group.register(serverSocketChannel).syncUninterruptibly();
serverSocketChannel.bind(newUnixDomainSocketAddress(file.getAbsolutePath()))
.syncUninterruptibly();
assertFalse(serverSocketChannel.closeOnReadError(new IOException()));
serverSocketChannel.close().syncUninterruptibly();
} finally {
group.shutdownGracefully();
file.delete();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testCloseOnError() do?
testCloseOnError() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java.
Where is testCloseOnError() defined?
testCloseOnError() is defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java at line 46.
What does testCloseOnError() call?
testCloseOnError() calls 1 function(s): NioServerDomainSocketChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free