From 0994c9255052923d7051237396a269af2cc88eec Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Mar 2017 21:34:13 +0900 Subject: [PATCH] nghttpx: Don't cache session server side if TLS version is 1.3 --- src/shrpx_ssl.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index 5f8a3691..59ecbff6 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -269,6 +269,12 @@ int tls_session_new_cb(SSL *ssl, SSL_SESSION *session) { auto dispatcher = worker->get_session_cache_memcached_dispatcher(); auto &balloc = handler->get_block_allocator(); +#ifdef TLS1_3_VERSION + if (SSL_version(ssl) == TLS1_3_VERSION) { + return 0; + } +#endif // TLS1_3_VERSION + const unsigned char *id; unsigned int idlen;