]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/beast: enablment of SSL session-id reuse speedup mechanism 56037/head
authorMark Kogan <mkogan@redhat.com>
Tue, 5 Mar 2024 14:48:56 +0000 (16:48 +0200)
committerCasey Bodley <cbodley@redhat.com>
Thu, 7 Mar 2024 14:11:39 +0000 (09:11 -0500)
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)

src/rgw/rgw_asio_frontend.cc

index 42ad12061488a7af4929ec5fab31e113af4cf982..49b69614b0abbcb33147f7e76763c86082a7a3bb 100644 (file)
@@ -1042,10 +1042,10 @@ void AsioFrontend::accept(Listener& l, boost::system::error_code ec)
         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 {