Home / Function/ testTooManyAcceptedChannels() — netty Function Reference

testTooManyAcceptedChannels() — netty Function Reference

Architecture documentation for the testTooManyAcceptedChannels() function in OioEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f0c3c5bd_4143_f926_c9ba_887b9f1b7847["testTooManyAcceptedChannels()"]
  014786d9_6185_4241_3f9d_b335998e5758["OioEventLoopTest"]
  f0c3c5bd_4143_f926_c9ba_887b9f1b7847 -->|defined in| 014786d9_6185_4241_3f9d_b335998e5758
  style f0c3c5bd_4143_f926_c9ba_887b9f1b7847 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java lines 100–115

    @Test
    public void testTooManyAcceptedChannels() throws Exception {
        EventLoopGroup g = new OioEventLoopGroup(1);
        ServerBootstrap sb = new ServerBootstrap();
        sb.channel(OioServerSocketChannel.class);
        sb.group(g);
        sb.childHandler(new ChannelInboundHandlerAdapter());
        ChannelFuture f1 = sb.bind(0);
        f1.sync();

        Socket s = new Socket(NetUtil.LOCALHOST, ((InetSocketAddress) f1.channel().localAddress()).getPort());
        assertEquals(-1, s.getInputStream().read());
        s.close();

        g.shutdownGracefully();
    }

Domain

Subdomains

Frequently Asked Questions

What does testTooManyAcceptedChannels() do?
testTooManyAcceptedChannels() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java.
Where is testTooManyAcceptedChannels() defined?
testTooManyAcceptedChannels() is defined in transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java at line 100.

Analyze Your Own Codebase

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

Try Supermodel Free