Home
last modified time | relevance | path

Searched refs:cache_size (Results 1 – 7 of 7) sorted by path

/unit/src/
H A Dnxt_conf_validation.c497 int64_t cache_size; in nxt_conf_vldt_tls_cache_size() local
499 cache_size = nxt_conf_get_number(value); in nxt_conf_vldt_tls_cache_size()
501 if (cache_size < 0) { in nxt_conf_vldt_tls_cache_size()
H A Dnxt_job.c18 size_t cache_size; in nxt_job_create() local
28 cache_size = 0; in nxt_job_create()
32 cache_size = size; in nxt_job_create()
36 job->cache_size = (uint16_t) cache_size; in nxt_job_create()
68 if (job->cache_size == 0) { in nxt_job_destroy()
H A Dnxt_job.h40 uint16_t cache_size; member
H A Dnxt_openssl.c78 static void nxt_ssl_session_cache(SSL_CTX *ctx, size_t cache_size,
381 nxt_ssl_session_cache(ctx, tls_init->cache_size, tls_init->timeout); in nxt_openssl_server_init()
833 nxt_ssl_session_cache(SSL_CTX *ctx, size_t cache_size, time_t timeout) argument
835 if (cache_size == 0) {
842 SSL_CTX_sess_set_cache_size(ctx, cache_size);
H A Dnxt_router.c1895 tls_init->cache_size = 0; in nxt_router_conf_create()
1900 tls_init->cache_size = nxt_conf_get_number(value); in nxt_router_conf_create()
H A Dnxt_tls.h86 size_t cache_size; member
/unit/test/
H A Dtest_tls_session.py38 def add_session(self, cache_size=None, timeout=None): argument
41 if cache_size is not None:
42 session['cache_size'] = cache_size
79 assert 'success' in self.add_session(cache_size=2)
100 assert 'success' in self.add_session(cache_size=8)
109 assert 'success' in self.add_session(cache_size=5, timeout=1)
123 assert 'error' in self.add_session(cache_size=-1)
124 assert 'error' in self.add_session(cache_size={})