testSessionCacheTimeout() — netty Function Reference
Architecture documentation for the testSessionCacheTimeout() function in SSLEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 19dcc27e_3987_d074_4e29_5604494bbd1a["testSessionCacheTimeout()"] 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"] 19dcc27e_3987_d074_4e29_5604494bbd1a -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"] 19dcc27e_3987_d074_4e29_5604494bbd1a -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8 e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"] 19dcc27e_3987_d074_4e29_5604494bbd1a -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df 5b1aff79_52fd_e366_c29d_676e7d63d1e6["doHandshakeVerifyReusedAndClose()"] 19dcc27e_3987_d074_4e29_5604494bbd1a -->|calls| 5b1aff79_52fd_e366_c29d_676e7d63d1e6 7f5b1fd5_3463_a8cf_7885_74cd1a06486c["assertSessionCache()"] 19dcc27e_3987_d074_4e29_5604494bbd1a -->|calls| 7f5b1fd5_3463_a8cf_7885_74cd1a06486c style 19dcc27e_3987_d074_4e29_5604494bbd1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 3476–3503
@MethodSource("newTestParams")
@ParameterizedTest
public void testSessionCacheTimeout(SSLEngineTestParam param) throws Exception {
clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
.trustManager(InsecureTrustManagerFactory.INSTANCE)
.sslProvider(sslClientProvider())
.sslContextProvider(clientSslContextProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.sessionTimeout(1)
.build());
SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
serverSslCtx = wrapContext(param, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
.sslProvider(sslServerProvider())
.sslContextProvider(serverSslContextProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.sessionTimeout(1)
.build());
doHandshakeVerifyReusedAndClose(param, "a.netty.io", 9999, false);
// Let's sleep for a bit more then 1 second so the cache should timeout the sessions.
Thread.sleep(1500);
assertSessionCache(serverSslCtx.sessionContext(), 0);
assertSessionCache(clientSslCtx.sessionContext(), 0);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSessionCacheTimeout() do?
testSessionCacheTimeout() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testSessionCacheTimeout() defined?
testSessionCacheTimeout() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 3476.
What does testSessionCacheTimeout() call?
testSessionCacheTimeout() calls 4 function(s): assertSessionCache, ciphers, doHandshakeVerifyReusedAndClose, protocols.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free