Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: quincy
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/rgw/rgw_asio_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ unsigned short parse_port(const char *input, boost::system::error_code& ec)
}
return port;
}

tcp::endpoint parse_endpoint(boost::asio::string_view input,
unsigned short default_port,
boost::system::error_code& ec)
Expand Down Expand Up @@ -1033,10 +1033,12 @@ 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(),
ec, yield);
if (!ec) {

if (!ec || ec == http::error::end_of_stream) {
// ssl shutdown (ignoring errors)
stream.async_shutdown(yield[ec]);
}

conn->socket.shutdown(tcp::socket::shutdown_both, ec);
}, make_stack_allocator());
} else {
Expand Down