Skip to content

Commit 6fb4c5d

Browse files
committed
rgw/beast: enablment of SSL session-id reuse speedup mechanism
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 <[email protected]>
1 parent 1d74cbc commit 6fb4c5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rgw/rgw_asio_frontend.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,10 +1042,10 @@ void AsioFrontend::accept(Listener& l, boost::system::error_code ec)
10421042
handle_connection(context, env, stream, timeout, header_limit,
10431043
conn->buffer, true, pause_mutex, scheduler.get(),
10441044
uri_prefix, ec, yield);
1045-
if (!ec) {
1046-
// ssl shutdown (ignoring errors)
1047-
stream.async_shutdown(yield[ec]);
1048-
}
1045+
1046+
// ssl shutdown (ignoring errors)
1047+
stream.async_shutdown(yield[ec]);
1048+
10491049
conn->socket.shutdown(tcp::socket::shutdown_both, ec);
10501050
}, make_stack_allocator());
10511051
} else {

0 commit comments

Comments
 (0)