Home / Function/ shutdown() — netty Function Reference

shutdown() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 9

Entity Profile

Dependency Diagram

graph TD
  c4b3e9d1_8ba5_707f_4649_4d5a628a2433["shutdown()"]
  df1ad81e_e5bf_85e6_4418_db301b4c3e66["ReferenceCountedOpenSslEngine"]
  c4b3e9d1_8ba5_707f_4649_4d5a628a2433 -->|defined in| df1ad81e_e5bf_85e6_4418_db301b4c3e66
  597187e9_65f2_df9a_22e3_c3e7eb0f231a["ReferenceCountedOpenSslEngine()"]
  597187e9_65f2_df9a_22e3_c3e7eb0f231a -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  9f77679b_188a_ea47_0bb0_025af752e7f4["SSLEngineResult()"]
  9f77679b_188a_ea47_0bb0_025af752e7f4 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  91fc1e9f_da8a_5369_c205_f01b69e8bd01["SSLException()"]
  91fc1e9f_da8a_5369_c205_f01b69e8bd01 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  e6fa950c_d99c_7298_4b2b_33c72121be2b["rejectRemoteInitiatedRenegotiation()"]
  e6fa950c_d99c_7298_4b2b_33c72121be2b -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  37991072_601c_2454_d68c_ade81585d80b["runAndResetNeedTask()"]
  37991072_601c_2454_d68c_ade81585d80b -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  9b3e5989_899b_5eb0_0d24_39c13fe87203["closeInbound()"]
  9b3e5989_899b_5eb0_0d24_39c13fe87203 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  c857de21_33d9_bee3_7859_4a5480ea5cf5["closeOutbound()"]
  c857de21_33d9_bee3_7859_4a5480ea5cf5 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  1597114c_667e_f9e1_e97d_756c7ad01661["doSSLShutdown()"]
  1597114c_667e_f9e1_e97d_756c7ad01661 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  bd3db87e_15bb_10ab_35c4_8c54c4a424e8["handshakeException()"]
  bd3db87e_15bb_10ab_35c4_8c54c4a424e8 -->|calls| c4b3e9d1_8ba5_707f_4649_4d5a628a2433
  597187e9_65f2_df9a_22e3_c3e7eb0f231a["ReferenceCountedOpenSslEngine()"]
  c4b3e9d1_8ba5_707f_4649_4d5a628a2433 -->|calls| 597187e9_65f2_df9a_22e3_c3e7eb0f231a
  style c4b3e9d1_8ba5_707f_4649_4d5a628a2433 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java lines 586–603

    public final synchronized void shutdown() {
        if (!destroyed) {
            destroyed = true;
            // Let's check if engineMap is null as it could be in theory if we throw an OOME during the construction of
            // ReferenceCountedOpenSslEngine (before we assign the field). This is needed as shutdown() is called from
            // the finalizer as well.
            if (engines != null) {
                engines.remove(ssl);
            }
            SSL.freeSSL(ssl);
            ssl = networkBIO = 0;

            isInboundDone = outboundClosed = true;
        }

        // On shutdown clear all errors
        SSL.clearError();
    }

Domain

Subdomains

Frequently Asked Questions

What does shutdown() do?
shutdown() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java.
Where is shutdown() defined?
shutdown() is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java at line 586.
What does shutdown() call?
shutdown() calls 1 function(s): ReferenceCountedOpenSslEngine.
What calls shutdown()?
shutdown() is called by 9 function(s): ReferenceCountedOpenSslEngine, SSLEngineResult, SSLException, closeInbound, closeOutbound, doSSLShutdown, handshakeException, rejectRemoteInitiatedRenegotiation, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free