ssl_stream does not use flat_stream

We no longer need to use flat_stream to improve write performance, as
Asio now linearizes scatter/gather I/O in ssl::stream:
https://github.com/chriskohlhoff/asio/commit/17637a48ccbfa2f63941d8393a7c8316a8df4a79
This commit is contained in:
Mohammad Nejati
2024-05-30 06:58:07 +00:00
committed by Mohammad Nejati
parent 6dd3cf7ab1
commit bd804b6520
6 changed files with 29 additions and 678 deletions
@@ -108,9 +108,9 @@ int main(int argc, char* argv[])
acceptor.accept(socket);
// Launch the session, transferring ownership of the socket
std::thread{
do_session,
std::move(socket)}.detach();
std::thread(
&do_session,
std::move(socket)).detach();
}
}
catch (const std::exception& e)