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 authored and Mohammad Nejati committed 2024-05-31 16:45:52 +03:30
1 parent 6dd3cf7ab1
commit bd804b6520
6 files changed
+29 -678

No files matched your search

@@ -123,10 +123,10 @@ int main(int argc, char* argv[])
acceptor.accept(socket);
// Launch the session, transferring ownership of the socket
std::thread{
do_session,
std::thread(
&do_session,
std::move(socket),
std::ref(ctx)}.detach();
std::ref(ctx)).detach();
}
}
catch (const std::exception& e)