From 79b378962a27b835a8bb6e14c9ee104df743feb9 Mon Sep 17 00:00:00 2001 From: Junyeon LEE Date: Mon, 10 Apr 2017 19:30:12 +0900 Subject: [PATCH] net/tls: change default cache entry number This commit minimizes the default maximum entry count for memory saving. Change-Id: Ic7d7578fb5e41530d56dc86b0b46df573fe87e74 Signed-off-by: Junyeon LEE --- os/include/tls/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/include/tls/config.h b/os/include/tls/config.h index bc0e686..c325105 100644 --- a/os/include/tls/config.h +++ b/os/include/tls/config.h @@ -2578,7 +2578,7 @@ /* SSL Cache options */ //#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */ -//#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */ +#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 2 /**< Maximum entries in cache */ /* SSL options */ //#define MBEDTLS_SSL_MAX_CONTENT_LEN 16384 /**< Maxium fragment length in bytes, determines the size of each of the two internal I/O buffers */ -- 2.7.4