saveSession() — netty Function Reference
Architecture documentation for the saveSession() function in QuicClientSessionCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ba7e5416_0084_c6b3_614e_77129ef7aa52["saveSession()"] 5d182568_b440_b59f_55b6_3e43b2f435b4["QuicClientSessionCache"] ba7e5416_0084_c6b3_614e_77129ef7aa52 -->|defined in| 5d182568_b440_b59f_55b6_3e43b2f435b4 40aee01c_40f0_656b_4271_003bc6cf9723["expungeInvalidSessions()"] ba7e5416_0084_c6b3_614e_77129ef7aa52 -->|calls| 40aee01c_40f0_656b_4271_003bc6cf9723 ee80d95e_742f_a780_efc4_d5ba99f70aa2["SessionHolder()"] ba7e5416_0084_c6b3_614e_77129ef7aa52 -->|calls| ee80d95e_742f_a780_efc4_d5ba99f70aa2 style ba7e5416_0084_c6b3_614e_77129ef7aa52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java lines 59–74
void saveSession(@Nullable String host, int port, long creationTime, long timeout, byte[] session,
boolean isSingleUse) {
HostPort hostPort = keyFor(host, port);
if (hostPort != null) {
synchronized (sessions) {
// Mimic what OpenSSL is doing and expunge every 255 new sessions
// See https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_flush_sessions.html
if (++sessionCounter == 255) {
sessionCounter = 0;
expungeInvalidSessions();
}
sessions.put(hostPort, new SessionHolder(creationTime, timeout, session, isSingleUse));
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does saveSession() do?
saveSession() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java.
Where is saveSession() defined?
saveSession() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java at line 59.
What does saveSession() call?
saveSession() calls 2 function(s): SessionHolder, expungeInvalidSessions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free