forked from boostorg/beast
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:
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)
|
||||
|
||||
Reference in new issue
Block a user