Home / Function/ checkStartTimeout() — netty Function Reference

checkStartTimeout() — netty Function Reference

Architecture documentation for the checkStartTimeout() function in AbstractSniHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c3473b29_cba6_acde_e92e_00f03deb5274["checkStartTimeout()"]
  ea4c5b1a_4a57_856f_cff7_cb1bfdabf2cf["AbstractSniHandler"]
  c3473b29_cba6_acde_e92e_00f03deb5274 -->|defined in| ea4c5b1a_4a57_856f_cff7_cb1bfdabf2cf
  623aa1b3_bc4a_ce13_d354_d4f11fc27c44["handlerAdded()"]
  623aa1b3_bc4a_ce13_d354_d4f11fc27c44 -->|calls| c3473b29_cba6_acde_e92e_00f03deb5274
  01088cd0_9476_0861_9b56_775d802fbb10["channelActive()"]
  01088cd0_9476_0861_9b56_775d802fbb10 -->|calls| c3473b29_cba6_acde_e92e_00f03deb5274
  style c3473b29_cba6_acde_e92e_00f03deb5274 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/AbstractSniHandler.java lines 161–176

    private void checkStartTimeout(final ChannelHandlerContext ctx) {
        if (handshakeTimeoutMillis <= 0 || timeoutFuture != null) {
            return;
        }
        timeoutFuture = ctx.executor().schedule(new Runnable() {
            @Override
            public void run() {
                if (ctx.channel().isActive()) {
                    SslHandshakeTimeoutException exception = new SslHandshakeTimeoutException(
                        "handshake timed out after " + handshakeTimeoutMillis + "ms");
                    ctx.fireUserEventTriggered(new SniCompletionEvent(exception));
                    ctx.close();
                }
            }
        }, handshakeTimeoutMillis, TimeUnit.MILLISECONDS);
    }

Domain

Subdomains

Frequently Asked Questions

What does checkStartTimeout() do?
checkStartTimeout() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/AbstractSniHandler.java.
Where is checkStartTimeout() defined?
checkStartTimeout() is defined in handler/src/main/java/io/netty/handler/ssl/AbstractSniHandler.java at line 161.
What calls checkStartTimeout()?
checkStartTimeout() is called by 2 function(s): channelActive, handlerAdded.

Analyze Your Own Codebase

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

Try Supermodel Free