nghttpx: Don't cache session server side if TLS version is 1.3
This commit is contained in:
parent
465c7208cc
commit
0994c92550
|
@ -269,6 +269,12 @@ int tls_session_new_cb(SSL *ssl, SSL_SESSION *session) {
|
||||||
auto dispatcher = worker->get_session_cache_memcached_dispatcher();
|
auto dispatcher = worker->get_session_cache_memcached_dispatcher();
|
||||||
auto &balloc = handler->get_block_allocator();
|
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;
|
const unsigned char *id;
|
||||||
unsigned int idlen;
|
unsigned int idlen;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue