Skip to content

Commit

Permalink
dns-client: reduce ssl session cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Aug 27, 2020
1 parent c3b6560 commit 7af6f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ static int _dns_client_server_add(char *server_ip, char *server_host, int port,

SSL_CTX_set_options(server_info->ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
SSL_CTX_set_session_cache_mode(server_info->ssl_ctx, SSL_SESS_CACHE_CLIENT);
SSL_CTX_sess_set_cache_size(server_info->ssl_ctx, 64);
SSL_CTX_sess_set_cache_size(server_info->ssl_ctx, 1);
if (_dns_client_set_trusted_cert(server_info->ssl_ctx) != 0) {
tlog(TLOG_WARN, "disable check certificate for %s.", server_info->ip);
server_info->skip_check_cert = 1;
Expand Down

0 comments on commit 7af6f47

Please sign in to comment.