Merge pull request #55967 from mkogan1/wip-rgw-ssl-ses-id-reuse

rgw/beast: Enable SSL session-id reuse speedup mechanism

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
J. Eric Ivancich 2024-03-06 20:53:13 -05:00 committed by GitHub
commit ac30ee6cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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 {