testHandshakeTimeout() — netty Function Reference
Architecture documentation for the testHandshakeTimeout() function in SslHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD de3781b8_14ea_faf5_5cf1_a060cadcc2ed["testHandshakeTimeout()"] adaf7dc7_94e2_152f_ffdb_453fdaa4f25e["SslHandlerTest"] de3781b8_14ea_faf5_5cf1_a060cadcc2ed -->|defined in| adaf7dc7_94e2_152f_ffdb_453fdaa4f25e a6487d43_ea5b_5f43_0acc_16059789f895["testClientHandshakeTimeout()"] a6487d43_ea5b_5f43_0acc_16059789f895 -->|calls| de3781b8_14ea_faf5_5cf1_a060cadcc2ed c3867ffd_40b6_187b_8623_06bc21709d59["testServerHandshakeTimeout()"] c3867ffd_40b6_187b_8623_06bc21709d59 -->|calls| de3781b8_14ea_faf5_5cf1_a060cadcc2ed style de3781b8_14ea_faf5_5cf1_a060cadcc2ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 252–270
private static void testHandshakeTimeout(boolean client) throws Exception {
SSLEngine engine = SSLContext.getDefault().createSSLEngine();
engine.setUseClientMode(client);
SslHandler handler = new SslHandler(engine);
handler.setHandshakeTimeoutMillis(1);
EmbeddedChannel ch = new EmbeddedChannel(handler);
try {
while (!handler.handshakeFuture().isDone()) {
Thread.sleep(10);
// We need to run all pending tasks as the handshake timeout is scheduled on the EventLoop.
ch.runPendingTasks();
}
handler.handshakeFuture().syncUninterruptibly();
} finally {
ch.finishAndReleaseAll();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHandshakeTimeout() do?
testHandshakeTimeout() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is testHandshakeTimeout() defined?
testHandshakeTimeout() is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 252.
What calls testHandshakeTimeout()?
testHandshakeTimeout() is called by 2 function(s): testClientHandshakeTimeout, testServerHandshakeTimeout.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free