testConnectDeadLock() — netty Function Reference
Architecture documentation for the testConnectDeadLock() function in BootstrapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 89471cb4_eb74_6159_3ac1_58b8d4b146e3["testConnectDeadLock()"] 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"] 89471cb4_eb74_6159_3ac1_58b8d4b146e3 -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42 style 89471cb4_eb74_6159_3ac1_58b8d4b146e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 194–229
@Test
@Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
public void testConnectDeadLock() throws Exception {
final Bootstrap bootstrapA = new Bootstrap();
bootstrapA.group(groupA);
bootstrapA.channel(LocalChannel.class);
bootstrapA.handler(dummyHandler);
final Bootstrap bootstrapB = new Bootstrap();
bootstrapB.group(groupB);
bootstrapB.channel(LocalChannel.class);
bootstrapB.handler(dummyHandler);
List<Future<?>> bindFutures = new ArrayList<Future<?>>();
// Try to connect from each other.
for (int i = 0; i < 1024; i ++) {
bindFutures.add(groupA.next().submit(new Runnable() {
@Override
public void run() {
bootstrapB.connect(LocalAddress.ANY);
}
}));
bindFutures.add(groupB.next().submit(new Runnable() {
@Override
public void run() {
bootstrapA.connect(LocalAddress.ANY);
}
}));
}
for (Future<?> f: bindFutures) {
f.sync();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testConnectDeadLock() do?
testConnectDeadLock() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is testConnectDeadLock() defined?
testConnectDeadLock() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 194.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free