nghttpx: Don't cache session server side if TLS version is 1.3

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-22 21:34:13 +09:00
parent 465c7208cc
commit 0994c92550
1 changed files with 6 additions and 0 deletions

View File

@ -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;