nghttpx: Don't look up session ID if length is 0
This commit is contained in:
parent
4f9f181f07
commit
465c7208cc
|
@ -323,6 +323,10 @@ SSL_SESSION *tls_session_get_cb(SSL *ssl,
|
||||||
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();
|
||||||
|
|
||||||
|
if (idlen == 0) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if (conn->tls.cached_session) {
|
if (conn->tls.cached_session) {
|
||||||
if (LOG_ENABLED(INFO)) {
|
if (LOG_ENABLED(INFO)) {
|
||||||
LOG(INFO) << "Memcached: found cached session, id="
|
LOG(INFO) << "Memcached: found cached session, id="
|
||||||
|
|
Loading…
Reference in New Issue