applyHandshakeTimeout() — netty Function Reference
Architecture documentation for the applyHandshakeTimeout() function in SslHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 70b58434_ff20_4ee4_6789_fa5a07abafab["applyHandshakeTimeout()"] d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1["SslHandler"] 70b58434_ff20_4ee4_6789_fa5a07abafab -->|defined in| d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1 998f059b_4088_3c69_760d_e33e2b688238["startHandshakeProcessing()"] 998f059b_4088_3c69_760d_e33e2b688238 -->|calls| 70b58434_ff20_4ee4_6789_fa5a07abafab 007985bc_62e0_78a1_886e_513422ed7cfe["renegotiateOnEventLoop()"] 007985bc_62e0_78a1_886e_513422ed7cfe -->|calls| 70b58434_ff20_4ee4_6789_fa5a07abafab 16c70aef_a8d5_6d7e_02d1_6d8d8dfe1d58["releaseAndFailAll()"] 70b58434_ff20_4ee4_6789_fa5a07abafab -->|calls| 16c70aef_a8d5_6d7e_02d1_6d8d8dfe1d58 f0428da0_54a3_9dcb_eefb_1da6c347f719["run()"] 70b58434_ff20_4ee4_6789_fa5a07abafab -->|calls| f0428da0_54a3_9dcb_eefb_1da6c347f719 style 70b58434_ff20_4ee4_6789_fa5a07abafab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/SslHandler.java lines 2281–2310
private void applyHandshakeTimeout() {
final Promise<Channel> localHandshakePromise = this.handshakePromise;
// Set timeout if necessary.
final long handshakeTimeoutMillis = this.handshakeTimeoutMillis;
if (handshakeTimeoutMillis <= 0 || localHandshakePromise.isDone()) {
return;
}
final Future<?> timeoutFuture = ctx.executor().schedule(new Runnable() {
@Override
public void run() {
if (localHandshakePromise.isDone()) {
return;
}
SSLException exception =
new SslHandshakeTimeoutException("handshake timed out after " + handshakeTimeoutMillis + "ms");
try {
if (localHandshakePromise.tryFailure(exception)) {
SslUtils.handleHandshakeFailure(ctx, exception, true);
}
} finally {
releaseAndFailAll(ctx, exception);
}
}
}, handshakeTimeoutMillis, TimeUnit.MILLISECONDS);
// Cancel the handshake timeout when handshake is finished.
localHandshakePromise.addListener(f -> timeoutFuture.cancel(false));
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does applyHandshakeTimeout() do?
applyHandshakeTimeout() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java.
Where is applyHandshakeTimeout() defined?
applyHandshakeTimeout() is defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java at line 2281.
What does applyHandshakeTimeout() call?
applyHandshakeTimeout() calls 2 function(s): releaseAndFailAll, run.
What calls applyHandshakeTimeout()?
applyHandshakeTimeout() is called by 2 function(s): renegotiateOnEventLoop, startHandshakeProcessing.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free