Home / Function/ doSSLShutdown() — netty Function Reference

doSSLShutdown() — netty Function Reference

Architecture documentation for the doSSLShutdown() function in ReferenceCountedOpenSslEngine.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  1597114c_667e_f9e1_e97d_756c7ad01661["doSSLShutdown()"]
  df1ad81e_e5bf_85e6_4418_db301b4c3e66["ReferenceCountedOpenSslEngine"]
  1597114c_667e_f9e1_e97d_756c7ad01661 -->|defined in| df1ad81e_e5bf_85e6_4418_db301b4c3e66
  9f77679b_188a_ea47_0bb0_025af752e7f4["SSLEngineResult()"]
  9f77679b_188a_ea47_0bb0_025af752e7f4 -->|calls| 1597114c_667e_f9e1_e97d_756c7ad01661
  c857de21_33d9_bee3_7859_4a5480ea5cf5["closeOutbound()"]
  c857de21_33d9_bee3_7859_4a5480ea5cf5 -->|calls| 1597114c_667e_f9e1_e97d_756c7ad01661
  c4b3e9d1_8ba5_707f_4649_4d5a628a2433["shutdown()"]
  1597114c_667e_f9e1_e97d_756c7ad01661 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  style 1597114c_667e_f9e1_e97d_756c7ad01661 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java lines 1631–1654

    private boolean doSSLShutdown() {
        if (SSL.isInInit(ssl) != 0) {
            // Only try to call SSL_shutdown if we are not in the init state anymore.
            // Otherwise we will see 'error:140E0197:SSL routines:SSL_shutdown:shutdown while in init' in our logs.
            //
            // See also https://hg.nginx.org/nginx/rev/062c189fee20
            return false;
        }
        int err = SSL.shutdownSSL(ssl);
        if (err < 0) {
            int sslErr = SSL.getError(ssl, err);
            if (sslErr == SSL.SSL_ERROR_SYSCALL || sslErr == SSL.SSL_ERROR_SSL) {
                if (logger.isDebugEnabled()) {
                    int error = SSL.getLastErrorNumber();
                    logger.debug("SSL_shutdown failed: OpenSSL error: {} {}", error, SSL.getErrorString(error));
                }
                // There was an internal error -- shutdown
                shutdown();
                return false;
            }
            SSL.clearError();
        }
        return true;
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does doSSLShutdown() do?
doSSLShutdown() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java.
Where is doSSLShutdown() defined?
doSSLShutdown() is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java at line 1631.
What does doSSLShutdown() call?
doSSLShutdown() calls 1 function(s): shutdown.
What calls doSSLShutdown()?
doSSLShutdown() is called by 2 function(s): SSLEngineResult, closeOutbound.

Analyze Your Own Codebase

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

Try Supermodel Free