Enable the OpenSSL session-id reuse acceleration mechanism that is described in:
https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_set_session_id_context.html
SSL_CTX_set_session_id_context, SSL_set_session_id_context - set context
within which session can be reused (server side only)
Fixes: https://tracker.ceph.com/issues/64719
Signed-off-by: Mark Kogan <mkogan@redhat.com>
(cherry picked from commit
6fb4c5d0c0694c9cfdbf0ed729d9f95886a0673f)
handle_connection(context, env, stream, timeout, header_limit,
conn->buffer, true, pause_mutex, scheduler.get(),
uri_prefix, ec, yield);
- if (!ec) {
- // ssl shutdown (ignoring errors)
- stream.async_shutdown(yield[ec]);
- }
+
+ // ssl shutdown (ignoring errors)
+ stream.async_shutdown(yield[ec]);
+
conn->socket.shutdown(tcp::socket::shutdown_both, ec);
}, make_stack_allocator());
} else {