Home / Function/ testSoLingerNoAssertError() — netty Function Reference

testSoLingerNoAssertError() — netty Function Reference

Architecture documentation for the testSoLingerNoAssertError() function in EpollSocketChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f591ee50_ee17_e70f_3e24_21f24a96fd4e["testSoLingerNoAssertError()"]
  d65ca846_317f_ea83_eb06_5feb9f9a7735["EpollSocketChannelTest"]
  f591ee50_ee17_e70f_3e24_21f24a96fd4e -->|defined in| d65ca846_317f_ea83_eb06_5feb9f9a7735
  style f591ee50_ee17_e70f_3e24_21f24a96fd4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketChannelTest.java lines 108–123

    @Test
    public void testSoLingerNoAssertError() throws Exception {
        EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, EpollIoHandler.newFactory());

        try {
            Bootstrap bootstrap = new Bootstrap();
            EpollSocketChannel ch = (EpollSocketChannel) bootstrap.group(group)
                    .channel(EpollSocketChannel.class)
                    .option(ChannelOption.SO_LINGER, 10)
                    .handler(new ChannelInboundHandlerAdapter())
                    .bind(new InetSocketAddress(0)).syncUninterruptibly().channel();
            ch.close().syncUninterruptibly();
        } finally {
            group.shutdownGracefully();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testSoLingerNoAssertError() do?
testSoLingerNoAssertError() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketChannelTest.java.
Where is testSoLingerNoAssertError() defined?
testSoLingerNoAssertError() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketChannelTest.java at line 108.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free